Commit ee0a0688 authored by Laurent Aimar's avatar Laurent Aimar
Browse files

Flush ES before deleting it (improves a bit a few mms/ogg/mp4)

parent 1202e3a4
......@@ -1278,7 +1278,15 @@ static void EsOutDel( es_out_t *out, es_out_id_t *es )
/* We don't try to reselect */
if( es->p_dec )
{
while( !out->p_sys->p_input->b_die && es->p_dec )
{
if( input_DecoderEmpty( es->p_dec ) )
break;
msleep( 20*1000 );
}
EsUnselect( out, es, es->p_pgrm == p_sys->p_pgrm );
}
if( es->p_pgrm == p_sys->p_pgrm )
EsOutESVarUpdate( out, es, VLC_TRUE );
......
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