From d7adbf1e2436e4300e4b47b8a5f892cf68cb2ed6 Mon Sep 17 00:00:00 2001 From: derrod Date: Mon, 19 Aug 2024 04:55:09 +0200 Subject: [PATCH] libobs: Add NULL check to encoder deprecation warning --- libobs/obs-encoder.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libobs/obs-encoder.c b/libobs/obs-encoder.c index 841ff050b..44c394a88 100644 --- a/libobs/obs-encoder.c +++ b/libobs/obs-encoder.c @@ -123,7 +123,7 @@ create_encoder(const char *id, enum obs_encoder_type type, const char *name, blog(LOG_DEBUG, "encoder '%s' (%s) created", name, id); - if (ei->caps & OBS_ENCODER_CAP_DEPRECATED) { + if (ei && ei->caps & OBS_ENCODER_CAP_DEPRECATED) { blog(LOG_WARNING, "Encoder ID '%s' is deprecated and may be removed in a future version.", id);