[vlc-devel] [PATCH] freetype: remove unnecessary assert()

Salah-Eddin Shaban salshaaban at gmail.com
Mon Feb 2 12:12:33 CET 2015


This assert() will fail when zero-width spaces are encountered and ignored.
It would also fail when GetGlyph() returns an error.
---
 modules/text_renderer/freetype.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/modules/text_renderer/freetype.c b/modules/text_renderer/freetype.c
index 050ace6..8d314fe 100644
--- a/modules/text_renderer/freetype.c
+++ b/modules/text_renderer/freetype.c
@@ -1520,7 +1520,6 @@ static int ProcessLines( filter_t *p_filter,
                     break;
                 }
 
-                assert( p_line->i_character_count == i_index - i_start);
                 p_line->p_character[p_line->i_character_count++] = (line_character_t){
                     .p_glyph = (FT_BitmapGlyph)glyph,
                     .p_outline = (FT_BitmapGlyph)outline,
-- 
1.9.1




More information about the vlc-devel mailing list