[vlc-commits] vdpau:display: replace hardcoded tick values by VLC_TICK_FROM_SEC()

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


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

vdpau:display: replace hardcoded tick values by VLC_TICK_FROM_SEC()

Easier to read and more explicit.

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

 modules/hw/vdpau/display.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/hw/vdpau/display.c b/modules/hw/vdpau/display.c
index 32afb6b76f..053ab81de4 100644
--- a/modules/hw/vdpau/display.c
+++ b/modules/hw/vdpau/display.c
@@ -276,7 +276,7 @@ static void Queue(vout_display_t *vd, picture_t *pic, subpicture_t *subpic,
     vlc_tick_t delay = date - now;
     if (delay < 0)
         delay = 0; /* core bug: date is not updated during pause */
-    if (unlikely(delay > CLOCK_FREQ))
+    if (unlikely(delay > VLC_TICK_FROM_SEC(1)))
     {   /* We would get stuck if the delay was too long. */
         msg_Dbg(vd, "picture date corrupt: delay of %"PRId64" us", delay);
         delay = VLC_TICK_FROM_MS(20);



More information about the vlc-commits mailing list