]> git.sesse.net Git - vlc/commitdiff
Fix/workaround for #1633 (input rate not set)
authorRémi Denis-Courmont <rdenis@simphalempin.com>
Tue, 24 Jun 2008 18:02:50 +0000 (21:02 +0300)
committerRémi Denis-Courmont <rdenis@simphalempin.com>
Tue, 24 Jun 2008 18:02:50 +0000 (21:02 +0300)
Someone still needs to fix this properly though...

src/audio_output/dec.c

index 5c15891460cdad0edfba0cce46883589f9bc649b..18d9fab41eb9437d9b1792b3e5905fb5ee554e44 100644 (file)
@@ -310,8 +310,14 @@ int aout_DecPlay( aout_instance_t * p_aout, aout_input_t * p_input,
     if( i_input_rate > INPUT_RATE_DEFAULT * AOUT_MAX_INPUT_RATE ||
         i_input_rate < INPUT_RATE_DEFAULT / AOUT_MAX_INPUT_RATE )
     {
+#ifndef FIXME
+        msg_Err( p_aout, "FIXME invalid input rate (%u/%u)", i_input_rate,
+                 INPUT_RATE_DEFAULT );
+        i_input_rate = INPUT_RATE_DEFAULT;
+#else
         aout_BufferFree( p_buffer );
         return 0;
+#endif
     }
 
     /* Apply the desynchronisation requested by the user */