[vlc-commits] aout:wasapi: use the 200ms explicitly instead of a bogus reference to AOUT_MAX_PREPARE_TIME

Steve Lhomme git at videolan.org
Wed Jul 4 14:04:15 CEST 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed Jul  4 13:23:07 2018 +0200| [bf1ae793a1da18f50f9e5ca6635b3190b23e926b] | committer: Steve Lhomme

aout:wasapi: use the 200ms explicitly instead of a bogus reference to AOUT_MAX_PREPARE_TIME

buffer_duration is REFERENCE_TIME and should not be written with a vlc_tick_t

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

 modules/audio_output/wasapi.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/modules/audio_output/wasapi.c b/modules/audio_output/wasapi.c
index 70340e41dc..14c571f778 100644
--- a/modules/audio_output/wasapi.c
+++ b/modules/audio_output/wasapi.c
@@ -493,14 +493,14 @@ static HRESULT Start(aout_stream_t *s, audio_sample_format_t *restrict pfmt,
         vlc_SpdifToWave(pwfe, &fmt);
         shared_mode = AUDCLNT_SHAREMODE_EXCLUSIVE;
         /* The max buffer duration in exclusive mode is 200ms */
-        buffer_duration = AOUT_MAX_PREPARE_TIME;
+        buffer_duration = MSFTIME_FROM_MS(200);
     }
     else if (b_hdmi)
     {
         vlc_HdmiToWave(&wf_iec61937, &fmt);
         shared_mode = AUDCLNT_SHAREMODE_EXCLUSIVE;
         /* The max buffer duration in exclusive mode is 200ms */
-        buffer_duration = AOUT_MAX_PREPARE_TIME;
+        buffer_duration = MSFTIME_FROM_MS(200);
     }
     else if (AOUT_FMT_LINEAR(&fmt))
     {
@@ -519,7 +519,7 @@ static HRESULT Start(aout_stream_t *s, audio_sample_format_t *restrict pfmt,
 
             /* Setup low latency in order to quickly react to ambisonics filters
              * viewpoint changes. */
-            buffer_duration = AOUT_MIN_PREPARE_TIME;
+            buffer_duration = MSFTIME_FROM_MS(200);
         }
         else
         {



More information about the vlc-commits mailing list