[vlc-commits] Do not try to fix the font color attribute at the codec level.

Laurent Aimar git at videolan.org
Sat Jun 25 20:23:20 CEST 2011


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Sun Jun 19 02:26:46 2011 +0200| [570c1946942e3ab8efa6145281e31728658a2a7f] | committer: Laurent Aimar

Do not try to fix the font color attribute at the codec level.

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

 modules/codec/subsdec.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/modules/codec/subsdec.c b/modules/codec/subsdec.c
index 48abf5e..abdac8a 100644
--- a/modules/codec/subsdec.c
+++ b/modules/codec/subsdec.c
@@ -684,8 +684,6 @@ static char *CreateHtmlSubtitle( int *pi_align, char *psz_subtitle )
                                 i_len = strcspn( psz_subtitle, " \t>" );
                             }
                             HtmlPut( &psz_html, "\"" );
-                            if( !strcmp( psz_attribs[ k ], "color=" ) && *psz_subtitle >= '0' && *psz_subtitle <= '9' )
-                                HtmlPut( &psz_html, "#" );
                             HtmlNPut( &psz_html, psz_subtitle, i_len );
                             HtmlPut( &psz_html, "\"" );
 



More information about the vlc-commits mailing list