[vlc-commits] pulse: replace hardcoded by VLC_TICK_FROM_SEC()

Steve Lhomme git at videolan.org
Fri Jul 6 16:07:18 CEST 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Thu Jun 14 13:33:43 2018 +0200| [fb4221e7c5d2b8ee8d5f7c674a9ba6420d983090] | committer: Steve Lhomme

pulse: replace hardcoded  by VLC_TICK_FROM_SEC()

Easier to read and more explicit.

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

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

diff --git a/modules/audio_output/pulse.c b/modules/audio_output/pulse.c
index f920e6e0c1..2753fb87fd 100644
--- a/modules/audio_output/pulse.c
+++ b/modules/audio_output/pulse.c
@@ -569,7 +569,7 @@ static void Flush(audio_output_t *aout, bool wait)
         /* XXX: Loosy drain emulation.
          * See #18141: drain callback is never received */
         vlc_tick_t delay;
-        if (TimeGet(aout, &delay) == 0 && delay <= INT64_C(5000000))
+        if (TimeGet(aout, &delay) == 0 && delay <= VLC_TICK_FROM_SEC(5))
             vlc_tick_sleep(delay);
     }
     else



More information about the vlc-commits mailing list