encoder: Show proper warning messages for custom options

This commit is contained in:
Cristobal E
2019-11-11 12:48:12 -06:00
committed by Michael Fabian 'Xaymar' Dirks
parent 629afe3661
commit 2759153b0e
+3 -2
View File
@@ -1015,8 +1015,9 @@ bool obsffmpeg::encoder::update(obs_data_t* settings)
if ((ret = av_opt_set(_context, key.c_str(), value.c_str(), if ((ret = av_opt_set(_context, key.c_str(), value.c_str(),
AV_OPT_SEARCH_CHILDREN)) AV_OPT_SEARCH_CHILDREN))
< 0) { < 0) {
PLOG_WARNING("Option '%s' could not be set to '%s'.", char sterror[AV_ERROR_MAX_STRING_SIZE];
key.c_str(), value.c_str()); av_make_error_string(sterror, AV_ERROR_MAX_STRING_SIZE, ret);
PLOG_WARNING("Option '%s' could not be set to '%s'. (%s)", key.c_str(), value.c_str(), sterror);
} }
have_param = false; have_param = false;
have_key = false; have_key = false;