vlc | branch: master | Filip Roséen <[email protected]> | Fri Sep 28 18:18:13 2018 +0200| [8c2351eeec3a701facb0d4ad73be44cf61bb6bd2] | committer: Thomas Guillem
text_renderer/freetype: fix SIGSEGV in harfbuzz There is no documentation but that is how they do it in their tests: https://github.com/harfbuzz/harfbuzz/blob/master/test/api/test-unicode.c#L587 Signed-off-by: Thomas Guillem <[email protected]> > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8c2351eeec3a701facb0d4ad73be44cf61bb6bd2 --- modules/text_renderer/freetype/text_layout.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/text_renderer/freetype/text_layout.c b/modules/text_renderer/freetype/text_layout.c index 7a38da6313..b5b42631f5 100644 --- a/modules/text_renderer/freetype/text_layout.c +++ b/modules/text_renderer/freetype/text_layout.c @@ -466,7 +466,8 @@ static int AnalyzeParagraph( paragraph_t *p_paragraph ) #endif #ifdef HAVE_HARFBUZZ - hb_unicode_funcs_t *p_funcs = hb_unicode_funcs_get_default(); + hb_unicode_funcs_t *p_funcs = + hb_unicode_funcs_create( hb_unicode_funcs_get_default() ); for( int i = 0; i < p_paragraph->i_size; ++i ) p_paragraph->p_scripts[ i ] = hb_unicode_script( p_funcs, p_paragraph->p_code_points[ i ] ); _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
