Commit 68db349f authored by Laurent Aimar's avatar Laurent Aimar Committed by Jean-Baptiste Kempf

Fixed libass 0.9.7 support.

b670356d introduced a segfault.
(cherry picked from commit e1cfb704)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 61cb1e25
...@@ -750,7 +750,7 @@ static ass_handle_t *AssHandleHold( decoder_t *p_dec ) ...@@ -750,7 +750,7 @@ static ass_handle_t *AssHandleHold( decoder_t *p_dec )
dialog_ProgressSet( p_dialog, NULL, 0.2 ); dialog_ProgressSet( p_dialog, NULL, 0.2 );
#endif #endif
#if defined( LIBASS_VERSION ) && LIBASS_VERSION >= 0x00907000 #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 #else
ass_set_fonts( p_renderer, psz_font, psz_family ); // setup default font/family ass_set_fonts( p_renderer, psz_font, psz_family ); // setup default font/family
#endif #endif
...@@ -760,7 +760,7 @@ static ass_handle_t *AssHandleHold( decoder_t *p_dec ) ...@@ -760,7 +760,7 @@ static ass_handle_t *AssHandleHold( decoder_t *p_dec )
#else #else
/* FIXME you HAVE to give him a font if no fontconfig */ /* FIXME you HAVE to give him a font if no fontconfig */
#if defined( LIBASS_VERSION ) && LIBASS_VERSION >= 0x00907000 #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 #else
ass_set_fonts_nofc( p_renderer, psz_font, psz_family ); ass_set_fonts_nofc( p_renderer, psz_font, psz_family );
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment