[vlc-commits] Freetype: small fix for non-Win32 systems

Jean-Baptiste Kempf git at videolan.org
Sun Mar 27 12:49:51 CEST 2011


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sun Mar 27 12:44:46 2011 +0200| [969acffd043ec724f076d2203ae7a8bf48780d13] | committer: Jean-Baptiste Kempf

Freetype: small fix for non-Win32 systems

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

 modules/misc/text_renderer/freetype.c |    8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/modules/misc/text_renderer/freetype.c b/modules/misc/text_renderer/freetype.c
index c0a9150..2ce1380 100644
--- a/modules/misc/text_renderer/freetype.c
+++ b/modules/misc/text_renderer/freetype.c
@@ -2200,13 +2200,12 @@ static void FontConfig_BuildCache( filter_t *p_filter )
 {
     /* */
     msg_Dbg( p_filter, "Building font databases.");
-    mtime_t t1;
+    mtime_t t1, t2;
     t1 = mdate();
 
 #ifdef WIN32
     dialog_progress_bar_t *p_dialog = NULL;
     FcConfig *fcConfig = FcInitLoadConfig();
-    mtime_t t2;
 
     p_dialog = dialog_ProgressCreate( p_filter,
             _("Building font cache"),
@@ -2217,9 +2216,6 @@ static void FontConfig_BuildCache( filter_t *p_filter )
         dialog_ProgressSet( p_dialog, NULL, 0.5 ); */
 
     FcConfigBuildFonts( fcConfig );
-    t2 = mdate();
-    msg_Dbg( p_filter, "Took %ld microseconds", (long)((t2 - t1)) );
-
     if( p_dialog )
     {
 //        dialog_ProgressSet( p_dialog, NULL, 1.0 );
@@ -2227,6 +2223,8 @@ static void FontConfig_BuildCache( filter_t *p_filter )
         p_dialog = NULL;
     }
 #endif
+    t2 = mdate();
+    msg_Dbg( p_filter, "Took %ld microseconds", (long)((t2 - t1)) );
 }
 
 /***



More information about the vlc-commits mailing list