]> git.sesse.net Git - vlc/commitdiff
Fixed reseting audio/spu delay to 0.
authorLaurent Aimar <fenrir@videolan.org>
Fri, 7 Oct 2011 18:56:53 +0000 (20:56 +0200)
committerLaurent Aimar <fenrir@videolan.org>
Fri, 7 Oct 2011 20:26:17 +0000 (22:26 +0200)
It was previously ignored.

src/input/es_out.c

index dd29f63978615970dbf2862a841248931cee3715..760e57bab3ebc100a5b9db4cdd873cf3a7f2385c 100644 (file)
@@ -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 )
 {