Skip to content

Commit

Permalink
libobs: Add NULL check to encoder deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
derrod authored and Lain-B committed Aug 19, 2024
1 parent 3d2654f commit d7adbf1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libobs/obs-encoder.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d7adbf1

Please sign in to comment.