Commit 9cd54b7c authored by Ronan's avatar Ronan
Browse files

fix(videostream): do not use const MSVideoConfiguration** as...

fix(videostream): do not use const MSVideoConfiguration** as ms_filter_call_method parameter (invalid cast)
parent 3b94e4c0
Pipeline #426 failed with stage
in 0 seconds
......@@ -506,7 +506,7 @@ static void configure_video_source(VideoStream *stream){
vconf.required_bitrate = ms_factory_get_expected_bandwidth(stream->ms.factory);
ms_message("Encoder current bitrate is 0, using expected bandwidth %i", vconf.required_bitrate);
if (vconf.required_bitrate == 0) {
const MSVideoConfiguration *vconf_list = NULL;
MSVideoConfiguration *vconf_list = NULL;
ms_filter_call_method(stream->ms.encoder, MS_VIDEO_ENCODER_GET_CONFIGURATION_LIST, &vconf_list);
vconf = ms_video_find_best_configuration_for_size(vconf_list, vconf.vsize, stream->ms.factory->cpu_count);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment