]> git.sesse.net Git - vlc/commitdiff
Remove abusive error message
authorRémi Denis-Courmont <rdenis@simphalempin.com>
Sat, 28 Jun 2008 12:36:38 +0000 (15:36 +0300)
committerRémi Denis-Courmont <rdenis@simphalempin.com>
Sat, 28 Jun 2008 12:36:38 +0000 (15:36 +0300)
src/audio_output/dec.c

index 18d9fab41eb9437d9b1792b3e5905fb5ee554e44..60dde424daf181a68197e90d4ed78f185bb5a82a 100644 (file)
@@ -307,17 +307,16 @@ int aout_DecPlay( aout_instance_t * p_aout, aout_input_t * p_input,
         return -1;
     }
 
+#ifndef FIXME
+    /* This hack for #transcode{acodec=...}:display to work -- Courmisch */
+    if( i_input_rate == 0 )
+        i_input_rate = INPUT_RATE_DEFAULT;
+#endif
     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 */