[vlc-commits] video_widgets: make the 1.2s duration of the widget explicit with CLOCK_FREQ

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


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

video_widgets: make the 1.2s duration of the widget explicit with CLOCK_FREQ

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

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

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

diff --git a/src/video_output/video_widgets.c b/src/video_output/video_widgets.c
index d83a17f967..4e7db3990e 100644
--- a/src/video_output/video_widgets.c
+++ b/src/video_output/video_widgets.c
@@ -317,7 +317,7 @@ static void OSDWidget(vout_thread_t *vout, int channel, int type, int position)
 
     subpic->i_channel  = channel;
     subpic->i_start    = mdate();
-    subpic->i_stop     = subpic->i_start + 1200000;
+    subpic->i_stop     = subpic->i_start + 12*CLOCK_FREQ/10;
     subpic->b_ephemer  = true;
     subpic->b_absolute = true;
     subpic->b_fade     = true;



More information about the vlc-commits mailing list