[vlc-commits] vout_wrapper: turn the hardcoded double click timeout into a CLOCK_FREQ based value

Steve Lhomme git at videolan.org
Sat May 5 18:16:48 CEST 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Sat May  5 10:44:52 2018 +0200| [2175a7d76d3c7e491ea8fcdabf94d1c2889332ea] | committer: Rémi Denis-Courmont

vout_wrapper: turn the hardcoded double click timeout into a CLOCK_FREQ based value

Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>

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

 src/video_output/vout_wrapper.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/video_output/vout_wrapper.c b/src/video_output/vout_wrapper.c
index a1f2a8db9b..b4251dc79f 100644
--- a/src/video_output/vout_wrapper.c
+++ b/src/video_output/vout_wrapper.c
@@ -57,7 +57,7 @@ int vout_OpenWrapper(vout_thread_t *vout,
     sys->display.title = var_InheritString(vout, "video-title");
 
     /* */
-    const mtime_t double_click_timeout = 300000;
+    const mtime_t double_click_timeout = 3*CLOCK_FREQ/10;
     const mtime_t hide_timeout = var_CreateGetInteger(vout, "mouse-hide-timeout") * 1000;
     char *modlist = var_InheritString(vout, "vout");
 



More information about the vlc-commits mailing list