[vlc-commits] video_text: make the 1s duration of the OSD explicit using CLOCK_FREQ
    Steve Lhomme 
    git at videolan.org
       
    Sat May  5 18:16:43 CEST 2018
    
    
  
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | 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 <remi at remlab.net>
> 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);
     }
    
    
More information about the vlc-commits
mailing list