[vlc-commits] freetype: remove unnecessary assert()

Salah-Eddin Shaban git at videolan.org
Wed Feb 4 15:23:13 CET 2015


vlc | branch: master | Salah-Eddin Shaban <salshaaban at gmail.com> | 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 <jb at videolan.org>

> 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,



More information about the vlc-commits mailing list