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

Ludovic Fauvet git at videolan.org
Thu Jul 25 12:05:46 CEST 2013


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

directsound: remove the broken msleep fallback

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
(cherry picked from commit 1ab9abf37e549f6dd500e15dd3bf0c16dc29bdde)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 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