vlc | branch: master | Steve Lhomme <[email protected]> | 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 <[email protected]>

> 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;

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

Reply via email to