Commit 72c7ddfb authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Also complain subtitle is mislabeled as UTF-8

parent 43649de9
...@@ -352,7 +352,14 @@ static subpicture_t *ParseText( decoder_t *p_dec, block_t *p_block ) ...@@ -352,7 +352,14 @@ static subpicture_t *ParseText( decoder_t *p_dec, block_t *p_block )
return NULL; return NULL;
if( p_sys->iconv_handle == (vlc_iconv_t)-1 ) if( p_sys->iconv_handle == (vlc_iconv_t)-1 )
EnsureUTF8( psz_subtitle ); {
if (EnsureUTF8( psz_subtitle ) == NULL)
{
msg_Err( p_dec, _("failed to convert subtitle encoding.\n"
"Try manually setting a character-encoding "
"before you open the file.") );
}
}
else else
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment