[vlc-commits] mmdevice: transform milliseconds to ticks using VLC_TICK macros

Steve Lhomme git at videolan.org
Tue Jul 3 11:24:08 CEST 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Tue Jul  3 11:10:02 2018 +0200| [a6948536ba8d1d32a82fa659e1fa331b9b1c0545] | committer: Steve Lhomme

mmdevice: transform milliseconds to ticks using VLC_TICK macros

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

 modules/audio_output/mmdevice.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/audio_output/mmdevice.h b/modules/audio_output/mmdevice.h
index f727779fe9..b9f0b2ae10 100644
--- a/modules/audio_output/mmdevice.h
+++ b/modules/audio_output/mmdevice.h
@@ -85,7 +85,7 @@ static inline HRESULT aout_stream_Flush(aout_stream_t *s, bool wait)
 
         if (SUCCEEDED(aout_stream_TimeGet(s, &delay))
          && delay <= INT64_C(5000000))
-            Sleep((delay / (CLOCK_FREQ / 1000)) + 1);
+            Sleep(MS_FROM_VLC_TICK( delay ) + 1);
         return S_OK;
     }
     else



More information about the vlc-commits mailing list