[vlc-devel] commit: Fix/workaround for #1633 (input rate not set) ( Rémi Denis-Courmont )

git version control git at videolan.org
Tue Jun 24 20:00:55 CEST 2008


vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Tue Jun 24 21:02:50 2008 +0300| [6372f8faa09ea7deaa74a84e6bb4dfd38ed0a182]

Fix/workaround for #1633 (input rate not set)

Someone still needs to fix this properly though...

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6372f8faa09ea7deaa74a84e6bb4dfd38ed0a182
---

 src/audio_output/dec.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/audio_output/dec.c b/src/audio_output/dec.c
index 5c15891..18d9fab 100644
--- a/src/audio_output/dec.c
+++ b/src/audio_output/dec.c
@@ -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 */




More information about the vlc-devel mailing list