Commit d5d6a32a authored by Laurent Aimar's avatar Laurent Aimar

Stop es_out before removing demux.

It avoids useless es creation every time the current active es is destroyed.
parent 0dbfdd87
...@@ -1297,6 +1297,10 @@ static void End( input_thread_t * p_input ) ...@@ -1297,6 +1297,10 @@ static void End( input_thread_t * p_input )
/* Clean control variables */ /* Clean control variables */
input_ControlVarStop( p_input ); input_ControlVarStop( p_input );
/* Stop es out activity */
es_out_Control( p_input->p->p_es_out, ES_OUT_SET_ACTIVE, false );
es_out_Control( p_input->p->p_es_out, ES_OUT_SET_MODE, ES_OUT_MODE_NONE );
/* Clean up master */ /* Clean up master */
InputSourceClean( &p_input->p->input ); InputSourceClean( &p_input->p->input );
......
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