libobs: Add warning if created encoder is deprecated

This commit is contained in:
derrod
2024-08-12 04:39:00 +02:00
committed by Rodney
parent ebc50f0d2a
commit dac13eb144

View File

@@ -122,6 +122,13 @@ 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) {
blog(LOG_WARNING,
"Encoder ID '%s' is deprecated and may be removed in a future version.",
id);
}
return encoder;
}