|
|
|
@ -175,8 +175,6 @@ void webvtt_FillStyleFromCssDeclaration( const vlc_css_declaration_t *p_decl, te |
|
|
|
term = &p_decl->expr->seq[i].term; |
|
|
|
if( term->type < TYPE_STRING ) |
|
|
|
continue; |
|
|
|
if( term->type == TYPE_HEXCOLOR && term->psz == NULL) // Handle error case: "color: #;"
|
|
|
|
continue; |
|
|
|
i_total += strlen( term->psz ); |
|
|
|
if( term->type == TYPE_STRING ) |
|
|
|
i_total += 2; |
|
|
|
@ -190,8 +188,6 @@ void webvtt_FillStyleFromCssDeclaration( const vlc_css_declaration_t *p_decl, te |
|
|
|
term = &p_decl->expr->seq[i].term; |
|
|
|
if( term->type < TYPE_STRING ) |
|
|
|
continue; |
|
|
|
if( term->type == TYPE_HEXCOLOR && term->psz == NULL) // Handle error case: "color: #;"
|
|
|
|
continue; |
|
|
|
if( i > 0 ) |
|
|
|
strcat( psz, ", " ); |
|
|
|
i_total += strlen( term->psz ); |
|
|
|
|