[vlc-commits] freetype: fix negative duration

Francois Cartegnie git at videolan.org
Mon Aug 5 12:56:56 CEST 2019


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri Aug  2 10:23:36 2019 +0200| [186b29123eca17b969c0ad072259c0e639b7fd90] | committer: Francois Cartegnie

freetype: fix negative duration

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

 modules/text_renderer/freetype/fonts/fontconfig.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/modules/text_renderer/freetype/fonts/fontconfig.c b/modules/text_renderer/freetype/fonts/fontconfig.c
index 9db69f40c9..5a6e7fc6cb 100644
--- a/modules/text_renderer/freetype/fonts/fontconfig.c
+++ b/modules/text_renderer/freetype/fonts/fontconfig.c
@@ -89,8 +89,7 @@ int FontConfig_Prepare( filter_t *p_filter )
 #endif
 
     vlc_mutex_unlock( &lock );
-    ts -= vlc_tick_now();
-    msg_Dbg( p_filter, "Took %ld microseconds", (long)ts );
+    msg_Dbg( p_filter, "Took %" PRId64 " microseconds", vlc_tick_now() - ts );
 
     return (config != NULL) ? VLC_SUCCESS : VLC_EGENERIC;
 }



More information about the vlc-commits mailing list