[vlc-commits] microdns: use SEC_FROM_VLC_TICK() to convert vlc_tick_t to seconds

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


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed Jun 13 11:34:21 2018 +0200| [982f3e5190d188da083368f920f7bfcc20b776ea] | committer: Steve Lhomme

microdns: use SEC_FROM_VLC_TICK() to convert vlc_tick_t to seconds

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

 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 7afb3c1cba..135b627eba 100644
--- a/modules/services_discovery/microdns.c
+++ b/modules/services_discovery/microdns.c
@@ -457,7 +457,7 @@ RunSD( void *p_this )
     int i_status = mdns_listen( p_sys->p_microdns,
                                 p_sys->ppsz_service_names,
                                 p_sys->i_nb_service_names,
-                                RR_PTR, LISTEN_INTERVAL / INT64_C(1000000),
+                                RR_PTR, SEC_FROM_VLC_TICK(LISTEN_INTERVAL),
                                 stop_sd_cb, new_entries_sd_cb, p_sd );
 
     if( i_status < 0 )
@@ -569,7 +569,7 @@ RunRD( void *p_this )
     int i_status = mdns_listen( p_sys->p_microdns,
                                 p_sys->ppsz_service_names,
                                 p_sys->i_nb_service_names,
-                                RR_PTR, LISTEN_INTERVAL / INT64_C(1000000),
+                                RR_PTR, SEC_FROM_VLC_TICK(LISTEN_INTERVAL),
                                 stop_rd_cb, new_entries_rd_cb, p_rd );
 
     if( i_status < 0 )



More information about the vlc-commits mailing list