Commit 5d22821b authored by David Fuhrmann's avatar David Fuhrmann

codec: libass: show dialog for fontconfig cache recreation on osx

close #12014

(cherry picked from commit fd67a259eadaef3b25dc1ca50b8b09fd971a93fe)
Signed-off-by: default avatarDavid Fuhrmann <dfuhrmann@videolan.org>
parent ddcf826b
...@@ -219,7 +219,7 @@ static int Create( vlc_object_t *p_this ) ...@@ -219,7 +219,7 @@ static int Create( vlc_object_t *p_this )
#endif #endif
#ifdef HAVE_FONTCONFIG #ifdef HAVE_FONTCONFIG
#if defined(_WIN32) #if defined(_WIN32) || defined(__APPLE__)
dialog_progress_bar_t *p_dialog = dialog_progress_bar_t *p_dialog =
dialog_ProgressCreate( p_dec, dialog_ProgressCreate( p_dec,
_("Building font cache"), _("Building font cache"),
...@@ -227,7 +227,7 @@ static int Create( vlc_object_t *p_this ) ...@@ -227,7 +227,7 @@ static int Create( vlc_object_t *p_this )
"This should take less than a minute." ), NULL ); "This should take less than a minute." ), NULL );
#endif #endif
ass_set_fonts( p_renderer, psz_font, psz_family, true, NULL, 1 ); // setup default font/family ass_set_fonts( p_renderer, psz_font, psz_family, true, NULL, 1 ); // setup default font/family
#ifdef _WIN32 #if defined(_WIN32) || defined(__APPLE__)
if( p_dialog ) if( p_dialog )
{ {
dialog_ProgressSet( p_dialog, NULL, 1.0 ); dialog_ProgressSet( p_dialog, NULL, 1.0 );
......
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