rtmp-services: Fix setting of custom x264 profile

Profile was being set as a bool rather than a string, resulting in an
embarrassing situation where the profile was being set to 'true' rather
than the actual profile name.  ..There really needs to be a compiler
warning for using non-bools as bools.  This is one of the reason I
started using !! to change non-bools to bools.
This commit is contained in:
jp9000
2015-01-07 03:16:02 -08:00
parent 2ce2298d56
commit ccfae7e287

View File

@@ -245,7 +245,7 @@ static void apply_video_encoder_settings(obs_encoder_t *encoder,
item = json_object_get(recommended, "profile");
if (item && json_is_string(item)) {
const char *profile = json_string_value(item);
obs_data_set_bool(settings, "profile", profile);
obs_data_set_string(settings, "profile", profile);
}
item = json_object_get(recommended, "max video bitrate");