Commit 98332157 authored by Francois Cartegnie's avatar Francois Cartegnie

es_out: really restart es with ES_OUT_RESTART_ES

if an es is passed and is not a category es,
it is never restarted, just selected.
parent 78939977
......@@ -2226,8 +2226,16 @@ static int EsOutControlLocked( es_out_t *out, int i_query, va_list args )
if( i_cat == -1 )
{
if( es == p_sys->es[i] )
{
if( i_query == ES_OUT_RESTART_ES && p_sys->es[i]->p_dec )
{
EsDestroyDecoder( out, p_sys->es[i] );
EsCreateDecoder( out, p_sys->es[i] );
}
else if( i_query == ES_OUT_SET_ES )
{
EsOutSelect( out, es, true );
}
break;
}
}
......
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