[vlc-commits] directsound: remove the broken msleep fallback

Ludovic Fauvet git at videolan.org
Thu Jul 25 01:05:16 CEST 2013


vlc | branch: master | Ludovic Fauvet <etix at videolan.org> | Wed Jul 24 13:00:59 2013 +0200| [1ab9abf37e549f6dd500e15dd3bf0c16dc29bdde] | committer: Jean-Baptiste Kempf

directsound: remove the broken msleep fallback

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 modules/audio_output/directx.c |   10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)

diff --git a/modules/audio_output/directx.c b/modules/audio_output/directx.c
index 753fda1..0ab2d40 100644
--- a/modules/audio_output/directx.c
+++ b/modules/audio_output/directx.c
@@ -889,13 +889,9 @@ static void Flush ( audio_output_t * aout, bool drain )
             }
         }
         else
-            while( IDirectSoundBuffer_GetCurrentPosition( aout->sys->p_dsbuffer,(LPDWORD) &read, NULL) ==  DS_OK )
-            {
-                read %= DS_BUF_SIZE;
-                if( read == aout->sys->i_write )
-                    break;
-                msleep(10000);
-            }
+        {
+            IDirectSoundBuffer_Stop( aout->sys->p_dsbuffer );
+        }
     }
     else
     {



More information about the vlc-commits mailing list