[vlc-commits] dbus: fix vlc_tick_t value test

Steve Lhomme git at videolan.org
Mon Aug 17 16:14:37 CEST 2020


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Thu Aug 13 06:28:59 2020 +0200| [c2a51d3107a88e7c3225d9bbb36df04c69fdae42] | committer: Steve Lhomme

dbus: fix vlc_tick_t value test

Either from the algorithm or the type of vlc_tick_t, it can never be bigger
than INT64_MAX.

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

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

diff --git a/modules/control/dbus/dbus.c b/modules/control/dbus/dbus.c
index b968ba9e94..075e162941 100644
--- a/modules/control/dbus/dbus.c
+++ b/modules/control/dbus/dbus.c
@@ -474,7 +474,7 @@ static int next_timeout(intf_thread_t *intf)
             next_timeout = *expiry;
     }
 
-    if (next_timeout >= INT64_MAX)
+    if (next_timeout == INT64_MAX)
         return -1;
 
     next_timeout /= 1000;



More information about the vlc-commits mailing list