mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-05-18 21:38:29 -04:00
libobs: Add warning if created encoder is deprecated
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user