Commit 3b35572d authored by Thomas Guillem's avatar Thomas Guillem

input: use es_out_id_t * for controls

It worked since vlc_es_id_t was the first member of the es_out_id_t struct.
parent 4748a452
......@@ -2017,17 +2017,18 @@ static bool Control( input_thread_t *p_input,
case INPUT_CONTROL_SET_ES:
if( es_out_Control( input_priv(p_input)->p_es_out_display,
ES_OUT_SET_ES, param.id ) == VLC_SUCCESS )
ES_OUT_SET_ES, vlc_es_id_get_out( param.id ) )
== VLC_SUCCESS )
demux_Control( input_priv(p_input)->master->p_demux, DEMUX_SET_ES,
vlc_es_id_GetInputId( param.id ) );
break;
case INPUT_CONTROL_UNSET_ES:
es_out_Control( input_priv(p_input)->p_es_out_display,
ES_OUT_UNSET_ES, param.id );
ES_OUT_UNSET_ES, vlc_es_id_get_out(param.id) );
break;
case INPUT_CONTROL_RESTART_ES:
es_out_Control( input_priv(p_input)->p_es_out_display,
ES_OUT_RESTART_ES, param.id );
ES_OUT_RESTART_ES, vlc_es_id_get_out( param.id ) );
break;
case INPUT_CONTROL_SET_VIEWPOINT:
......
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