]> git.sesse.net Git - vlc/commitdiff
Do not try to fix the font color attribute at the codec level.
authorLaurent Aimar <fenrir@videolan.org>
Sun, 19 Jun 2011 00:26:46 +0000 (02:26 +0200)
committerLaurent Aimar <fenrir@videolan.org>
Sat, 25 Jun 2011 18:09:45 +0000 (20:09 +0200)
modules/codec/subsdec.c

index 48abf5e1ce80c3c1c9d41f05d7dfb7cb9f0ed103..abdac8a4f28e0427fd186bb1d6334ef74b84353d 100644 (file)
@@ -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, "\"" );