]> git.sesse.net Git - vlc/commitdiff
Libass: put the dialog, where we actually need it.
authorJean-Baptiste Kempf <jb@videolan.org>
Mon, 26 Apr 2010 22:48:53 +0000 (00:48 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Mon, 26 Apr 2010 22:49:18 +0000 (00:49 +0200)
modules/codec/libass.c

index ae36eac557dacad02f214f9d6168b3a9fe53a159..dbd5fde3cac2a6d45ce4a1d5e7c7c8cb6e2b290d 100644 (file)
@@ -698,15 +698,6 @@ static ass_handle_t *AssHandleHold( decoder_t *p_dec )
     }
     free( pp_attachments );
 
-#if defined(WIN32)
-    dialog_progress_bar_t *p_dialog = dialog_ProgressCreate( p_dec,
-        _("Building font cache"),
-        _( "Please wait while your font cache is rebuilt.\n"
-        "This should take less than a minute." ), NULL );
-    if( p_dialog )
-        dialog_ProgressSet( p_dialog, NULL, 0.1 );
-#endif
-
     ass_set_extract_fonts( p_library, true );
     ass_set_style_overrides( p_library, NULL );
 
@@ -726,7 +717,11 @@ static ass_handle_t *AssHandleHold( decoder_t *p_dec )
     const char *psz_family = "Arial"; /* Use Arial if we can't find anything more suitable */
 
 #ifdef HAVE_FONTCONFIG
-#ifdef WIN32
+#if defined(WIN32)
+    dialog_progress_bar_t *p_dialog = dialog_ProgressCreate( p_dec,
+        _("Building font cache"),
+        _( "Please wait while your font cache is rebuilt.\n"
+        "This should take less than a minute." ), NULL );
     if( p_dialog )
         dialog_ProgressSet( p_dialog, NULL, 0.2 );
 #endif