vlc | branch: master | Steve Lhomme <[email protected]> | Sat May  5 10:39:54 
2018 +0200| [3f7615623ede30855e3344a87ddba7d3f32df63a] | committer: Rémi 
Denis-Courmont

video_text: make the 1s duration of the OSD explicit using CLOCK_FREQ

Signed-off-by: Rémi Denis-Courmont <[email protected]>

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

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

diff --git a/src/video_output/video_text.c b/src/video_output/video_text.c
index ef2b094e7c..9a90c9db95 100644
--- a/src/video_output/video_text.c
+++ b/src/video_output/video_text.c
@@ -152,7 +152,7 @@ void vout_OSDMessage(vout_thread_t *vout, int channel, 
const char *format, ...)
     char *string;
     if (vasprintf(&string, format, args) != -1) {
         vout_OSDText(vout, channel,
-                     SUBPICTURE_ALIGN_TOP|SUBPICTURE_ALIGN_RIGHT, 1000000,
+                     SUBPICTURE_ALIGN_TOP|SUBPICTURE_ALIGN_RIGHT, CLOCK_FREQ*1,
                      string);
         free(string);
     }

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

Reply via email to