[vlc-commits] codec: libass: show dialog for fontconfig cache recreation on osx

David Fuhrmann git at videolan.org
Thu Oct 2 14:08:13 CEST 2014


vlc | branch: master | David Fuhrmann <dfuhrmann at videolan.org> | Thu Oct  2 13:53:51 2014 +0200| [fd67a259eadaef3b25dc1ca50b8b09fd971a93fe] | committer: David Fuhrmann

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

close #12014

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

 modules/codec/libass.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/codec/libass.c b/modules/codec/libass.c
index aa38f1b..5590df1 100644
--- a/modules/codec/libass.c
+++ b/modules/codec/libass.c
@@ -219,7 +219,7 @@ static int Create( vlc_object_t *p_this )
 #endif
 
 #ifdef HAVE_FONTCONFIG
-#if defined(_WIN32)
+#if defined(_WIN32) || defined(__APPLE__)
     dialog_progress_bar_t *p_dialog =
         dialog_ProgressCreate( p_dec,
                                _("Building font cache"),
@@ -227,7 +227,7 @@ static int Create( vlc_object_t *p_this )
                                   "This should take less than a minute." ), NULL );
 #endif
     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 )
     {
         dialog_ProgressSet( p_dialog, NULL, 1.0 );



More information about the vlc-commits mailing list