Commit 7c350952 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Libass: put the dialog, where we actually need it.

(cherry picked from commit 53e01409)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 8725cac2
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment