[vlc-commits] ass: auto-detect font-provider

Felix Paul Kühne git at videolan.org
Tue Oct 13 15:37:12 CEST 2015


vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Tue Oct 13 15:22:50 2015 +0200| [3707a2561244a901cdbe6a61a5a059db3c8a092c] | committer: Felix Paul Kühne

ass: auto-detect font-provider

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

 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 eaa281f..5cd48bc 100644
--- a/modules/codec/libass.c
+++ b/modules/codec/libass.c
@@ -226,7 +226,7 @@ static int Create( vlc_object_t *p_this )
                                _( "Please wait while your font cache is rebuilt.\n"
                                   "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
+    ass_set_fonts( p_renderer, psz_font, psz_family, 1, NULL, 1 );  // setup default font/family
 #if defined(_WIN32) || defined(__APPLE__)
     if( p_dialog )
     {
@@ -236,7 +236,7 @@ static int Create( vlc_object_t *p_this )
 #endif
 #else
     /* FIXME you HAVE to give him a font if no fontconfig */
-    ass_set_fonts( p_renderer, psz_font, psz_family, false, NULL, 1 );
+    ass_set_fonts( p_renderer, psz_font, psz_family, 1, NULL, 1 );
 #endif
 
     /* Add a track */



More information about the vlc-commits mailing list