[vlc-devel] commit: Fixed libass 0.9.7 support. (Laurent Aimar )
git version control
git at videolan.org
Fri Jul 24 23:45:48 CEST 2009
vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Fri Jul 24 23:42:14 2009 +0200| [e1cfb704f3b4254902cc7ab70ef352c4f4b57ecf] | committer: Laurent Aimar
Fixed libass 0.9.7 support.
b670356d167bf66f870ee3daf9dbac581eaf0651 introduced a segfault.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e1cfb704f3b4254902cc7ab70ef352c4f4b57ecf
---
modules/codec/libass.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/codec/libass.c b/modules/codec/libass.c
index c530cb9..82c9c82 100644
--- a/modules/codec/libass.c
+++ b/modules/codec/libass.c
@@ -735,7 +735,7 @@ static ass_handle_t *AssHandleHold( decoder_t *p_dec )
dialog_ProgressSet( p_dialog, NULL, 0.2 );
#endif
#if defined( LIBASS_VERSION ) && LIBASS_VERSION >= 0x00907000
- ass_set_fonts( p_renderer, psz_font, psz_family, true, NULL, 0 ); // setup default font/family
+ ass_set_fonts( p_renderer, psz_font, psz_family, true, NULL, 1 ); // setup default font/family
#else
ass_set_fonts( p_renderer, psz_font, psz_family ); // setup default font/family
#endif
@@ -745,7 +745,7 @@ static ass_handle_t *AssHandleHold( decoder_t *p_dec )
#else
/* FIXME you HAVE to give him a font if no fontconfig */
#if defined( LIBASS_VERSION ) && LIBASS_VERSION >= 0x00907000
- ass_set_fonts( p_renderer, psz_font, psz_family, false, NULL, 0 );
+ ass_set_fonts( p_renderer, psz_font, psz_family, false, NULL, 1 );
#else
ass_set_fonts_nofc( p_renderer, psz_font, psz_family );
#endif
More information about the vlc-devel
mailing list