Commit 4b42c996 authored by Laurent Aimar's avatar Laurent Aimar

Fixed reseting audio/spu delay to 0.

It was previously ignored.
parent d6385ab0
...@@ -769,14 +769,13 @@ static void EsOutDecoderChangeDelay( es_out_t *out, es_out_id_t *p_es ) ...@@ -769,14 +769,13 @@ static void EsOutDecoderChangeDelay( es_out_t *out, es_out_id_t *p_es )
i_delay = p_sys->i_audio_delay; i_delay = p_sys->i_audio_delay;
else if( p_es->fmt.i_cat == SPU_ES ) else if( p_es->fmt.i_cat == SPU_ES )
i_delay = p_sys->i_spu_delay; i_delay = p_sys->i_spu_delay;
else
return;
if( i_delay != 0 )
{
if( p_es->p_dec ) if( p_es->p_dec )
input_DecoderChangeDelay( p_es->p_dec, i_delay ); input_DecoderChangeDelay( p_es->p_dec, i_delay );
if( p_es->p_dec_record ) if( p_es->p_dec_record )
input_DecoderChangeDelay( p_es->p_dec_record, i_delay ); input_DecoderChangeDelay( p_es->p_dec_record, i_delay );
}
} }
static void EsOutProgramsChangeRate( es_out_t *out ) static void EsOutProgramsChangeRate( es_out_t *out )
{ {
......
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