Verbose error reporting on setting custom field values #16
Reference in New Issue
Block a user
Delete Branch "v0.4-custom-field-reporting"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
source/encoder.cpp: Added a call to convert error number into meaninnful text, showed this error for every failed custom field passed, also shows every successfully set custom field passed.
Motivation and Context
Trying to find out what settings were set and which ones were not set is a long trial and error proccess, this should help remove the guess work out of using the custom field parameters.
How Has This Been Tested?
I have used those changes in a local OBS setup
Types of changes
New feature
Checklist:
@@ -1003,8 +1003,9 @@ bool obsffmpeg::encoder::update(obs_data_t* settings)if ((ret = av_opt_set(_context, key.c_str(), value.c_str(),No need to log setting options as a warning, we only need to know when things haven't been set. Remove this part.
@@ -1003,8 +1003,9 @@ bool obsffmpeg::encoder::update(obs_data_t* settings)if ((ret = av_opt_set(_context, key.c_str(), value.c_str(),I kinda like when it shows what was actually applied from the list that was passed, because it may get stick together. What if I leave it commented out (the whole else) so if needed for debugging it can be enabled. No?
@@ -1003,8 +1003,9 @@ bool obsffmpeg::encoder::update(obs_data_t* settings)if ((ret = av_opt_set(_context, key.c_str(), value.c_str(),No, if you were debugging you would already have knowledge about it anyway (FFmpeg logs to the debug output if enabled). For an end user, only the failed options need to be known.