libobs: Add NULL check to encoder deprecation warning

This commit is contained in:
derrod
2024-08-19 04:55:09 +02:00
committed by Lain
parent 3d2654f71b
commit d7adbf1e24

View File

@@ -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);