[vlc-devel] [PATCH 1/2] input: add DEMUX_SET_ES notification
Rémi Denis-Courmont
remi at remlab.net
Wed Dec 4 10:57:11 CET 2013
On Tue, 3 Dec 2013 19:05:20 +0100, Francois Cartegnie <fcvlcdev at free.fr>
wrote:
> diff --git a/src/input/input.c b/src/input/input.c
> index e39c1a4..874e5cf 100644
> --- a/src/input/input.c
> +++ b/src/input/input.c
> @@ -1855,6 +1855,9 @@ static bool Control( input_thread_t *p_input,
> /* No need to force update, es_out does it if needed */
> es_out_Control( p_input->p->p_es_out_display,
> ES_OUT_SET_ES_BY_ID, (int)val.i_int );
> +
> + demux_Control( p_input->p->input.p_demux, DEMUX_SET_ES,
> (int)val.i_int,
> + true );
I think you need to check that the elementary was created by the master
demux before sending this control, at least. It would be better to call the
correct demux in all cases though.
> break;
>
> case INPUT_CONTROL_RESTART_ES:
--
Rémi Denis-Courmont
Sent from my collocated server
More information about the vlc-devel
mailing list