vlc/vlc-2.2 | branch: master | David Fuhrmann <[email protected]> | Thu 
Oct  2 13:53:51 2014 +0200| [5d22821b30a1e648e5a994fd5cb5ff1e34afb3b4] | 
committer: David Fuhrmann

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

close #12014

(cherry picked from commit fd67a259eadaef3b25dc1ca50b8b09fd971a93fe)
Signed-off-by: David Fuhrmann <[email protected]>

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

 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 );

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to