From 4367cb45c6efbea4e4e2e639b92b73e161af93cc Mon Sep 17 00:00:00 2001 From: Henri Fallon Date: Wed, 30 Aug 2000 16:24:25 +0000 Subject: [PATCH] Fixed a 100% CPU use bug while no stream is received --- plugins/dummy/aout_dummy.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/dummy/aout_dummy.c b/plugins/dummy/aout_dummy.c index 8aa1cdc810..ec7a70dc02 100644 --- a/plugins/dummy/aout_dummy.c +++ b/plugins/dummy/aout_dummy.c @@ -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 ) { - ; } /*****************************************************************************