vlc/vlc-3.0 | branch: master | Hugo Beauzée-Luyssen <[email protected]> | Tue Jan 
 9 16:14:23 2018 +0100| [56342c7037f3aae7e520054585da4875b6fbaab6] | committer: 
Hugo Beauzée-Luyssen

microdns: Adjust delays.

Consider a device gone after 3 announce were sent, and refresh a bit
more often

(cherry picked from commit 1ec14ba0ed6576878bfe99b123161a7e1e6a60fe)
Signed-off-by: Hugo Beauzée-Luyssen <[email protected]>

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

 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 c83bda6c25..ed2446db0e 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(20000000) /* 20 seconds */
-#define TIMEOUT (LISTEN_INTERVAL + INT64_C(5000000)) /* interval + 5 seconds */
+#define LISTEN_INTERVAL INT64_C(15000000) /* 15 seconds */
+#define TIMEOUT (3 * LISTEN_INTERVAL + INT64_C(5000000)) /* 3 * interval + 5 
seconds */
 
 /*
  * Module descriptor

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to