]> git.sesse.net Git - vlc/commitdiff
Fixed a 100% CPU use bug while no stream is received
authorHenri Fallon <henri@videolan.org>
Wed, 30 Aug 2000 16:24:25 +0000 (16:24 +0000)
committerHenri Fallon <henri@videolan.org>
Wed, 30 Aug 2000 16:24:25 +0000 (16:24 +0000)
plugins/dummy/aout_dummy.c

index 8aa1cdc810a31cf452bc1df9fc20c36fd221d835..ec7a70dc027c2aabc1385c22756b4d4190f62f87 100644 (file)
@@ -97,7 +97,7 @@ int aout_DummySetRate( aout_thread_t *p_aout )
  *****************************************************************************/
 long aout_DummyGetBufInfo( aout_thread_t *p_aout, long l_buffer_limit )
 {
-    return( 2 * l_buffer_limit );               /* value big enough to sleep */
+    return( sizeof(s16) * l_buffer_limit + 1 ); /* value big enough to sleep */
 }
 
 /*****************************************************************************
@@ -105,7 +105,6 @@ long aout_DummyGetBufInfo( aout_thread_t *p_aout, long l_buffer_limit )
  *****************************************************************************/
 void aout_DummyPlaySamples( aout_thread_t *p_aout, byte_t *buffer, int i_size )
 {
-    ;
 }
 
 /*****************************************************************************