[vlc-commits] libass: fix subtitles for iOS
Jean-Baptiste Kempf
git at videolan.org
Thu Dec 7 11:03:07 CET 2017
vlc/vlc-3.0 | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Thu Dec 7 10:58:25 2017 +0100| [1e811534c5e217d375e77a1131f171098a25a00b] | committer: Jean-Baptiste Kempf
libass: fix subtitles for iOS
Close #19134
(cherry picked from commit 7d0d4a9ec69613d3d2fd07ea0b76c46ea0765240)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=1e811534c5e217d375e77a1131f171098a25a00b
---
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 8004feb138..4d17cf8248 100644
--- a/modules/codec/libass.c
+++ b/modules/codec/libass.c
@@ -246,13 +246,13 @@ static int Create( vlc_object_t *p_this )
_( "Please wait while your font cache is rebuilt.\n"
"This should take less than a minute." ) );
#endif
- ass_set_fonts( p_renderer, psz_font, psz_family, 1, NULL, 1 ); // setup default font/family
+ ass_set_fonts( p_renderer, psz_font, psz_family, ASS_FONTPROVIDER_AUTODETECT, NULL, 1 ); // setup default font/family
#if defined(_WIN32)
if( p_dialog_id != 0 )
vlc_dialog_release( p_dec, p_dialog_id );
#endif
#else
- ass_set_fonts( p_renderer, psz_font, psz_family, 0, NULL, 0 );
+ ass_set_fonts( p_renderer, psz_font, psz_family, ASS_FONTPROVIDER_AUTODETECT, NULL, 0 );
#endif
/* Anything else than NONE will break smooth img updating.
More information about the vlc-commits
mailing list