[vlc-commits] microdns: replace hardcoded CLOCK_FREQ equivalent

Steve Lhomme git at videolan.org
Thu Jul 5 16:57:40 CEST 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed Jun 13 11:33:36 2018 +0200| [24b29dab97ce4989cfeb331bcdecadb363036357] | committer: Steve Lhomme

microdns: replace hardcoded CLOCK_FREQ equivalent

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

 modules/services_discovery/microdns.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/services_discovery/microdns.c b/modules/services_discovery/microdns.c
index be05bbc2e7..7afb3c1cba 100644
--- a/modules/services_discovery/microdns.c
+++ b/modules/services_discovery/microdns.c
@@ -46,8 +46,8 @@ VLC_RD_PROBE_HELPER( "microdns_renderer", "mDNS renderer Discovery" )
 
 #define CFG_PREFIX "sd-microdns-"
 
-#define LISTEN_INTERVAL INT64_C(15000000) /* 15 seconds */
-#define TIMEOUT (3 * LISTEN_INTERVAL + INT64_C(5000000)) /* 3 * interval + 5 seconds */
+#define LISTEN_INTERVAL VLC_TICK_FROM_SEC(15) /* 15 seconds */
+#define TIMEOUT (3 * LISTEN_INTERVAL + VLC_TICK_FROM_SEC(5)) /* 3 * interval + 5 seconds */
 
 /*
  * Module descriptor



More information about the vlc-commits mailing list