diff --git a/src/input/es_out.c b/src/input/es_out.c index dd29f63978615970dbf2862a841248931cee3715..760e57bab3ebc100a5b9db4cdd873cf3a7f2385c 100644 --- a/src/input/es_out.c +++ b/src/input/es_out.c @@ -769,14 +769,13 @@ static void EsOutDecoderChangeDelay( es_out_t *out, es_out_id_t *p_es ) i_delay = p_sys->i_audio_delay; else if( p_es->fmt.i_cat == SPU_ES ) i_delay = p_sys->i_spu_delay; + else + return; - if( i_delay != 0 ) - { - if( p_es->p_dec ) - input_DecoderChangeDelay( p_es->p_dec, i_delay ); - if( p_es->p_dec_record ) - input_DecoderChangeDelay( p_es->p_dec_record, i_delay ); - } + if( p_es->p_dec ) + input_DecoderChangeDelay( p_es->p_dec, i_delay ); + if( p_es->p_dec_record ) + input_DecoderChangeDelay( p_es->p_dec_record, i_delay ); } static void EsOutProgramsChangeRate( es_out_t *out ) {