vlc | branch: master | Salah-Eddin Shaban <[email protected]> | Mon Feb  2 
10:12:33 2015 +0000| [961028d90f8b8cf41de411a45534ee4db814ed4b] | committer: 
Jean-Baptiste Kempf

freetype: remove unnecessary assert()

This assert() will fail when zero-width spaces are encountered and ignored.
It would also fail when GetGlyph() returns an error.

Signed-off-by: Jean-Baptiste Kempf <[email protected]>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=961028d90f8b8cf41de411a45534ee4db814ed4b
---

 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,

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to