]> git.sesse.net Git - vlc/commitdiff
Also complain subtitle is mislabeled as UTF-8
authorRémi Denis-Courmont <rem@videolan.org>
Tue, 20 Feb 2007 17:05:04 +0000 (17:05 +0000)
committerRémi Denis-Courmont <rem@videolan.org>
Tue, 20 Feb 2007 17:05:04 +0000 (17:05 +0000)
modules/codec/subsdec.c

index be64cccfcdd597c95fd4402c55deca183530fb51..f66f38d316e966a3e73508cf3e68df454bf09ee7 100644 (file)
@@ -352,7 +352,14 @@ static subpicture_t *ParseText( decoder_t *p_dec, block_t *p_block )
         return NULL;
 
     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
     {