Commit 48270777 authored by Thomas Guillem's avatar Thomas Guillem Committed by Jean-Baptiste Kempf

es_out: RESTART_ALL_ES: restart only selected es

(cherry picked from commit 4c2b909c)
Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent b6e1d93a
......@@ -2386,8 +2386,11 @@ static int EsOutControlLocked( es_out_t *out, int i_query, va_list args )
{
for( int i = 0; i < p_sys->i_es; i++ )
{
EsDestroyDecoder( out, p_sys->es[i] );
EsCreateDecoder( out, p_sys->es[i] );
if( EsIsSelected( p_sys->es[i] ) )
{
EsDestroyDecoder( out, p_sys->es[i] );
EsCreateDecoder( out, p_sys->es[i] );
}
}
return VLC_SUCCESS;
}
......
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