Added missing EnsureUTF8 for CD-TEXT.
authorLaurent Aimar <fenrir@videolan.org>
Tue, 24 Feb 2009 22:56:55 +0000 (23:56 +0100)
committerLaurent Aimar <fenrir@videolan.org>
Tue, 24 Feb 2009 22:56:55 +0000 (23:56 +0100)
modules/access/vcd/cdrom.c

index c132288..bf5b03f 100644 (file)
@@ -1326,9 +1326,13 @@ static int CdTextParse( vlc_meta_t ***ppp_tracks, int *pi_tracks,
 
     for( int j = 0; j < 0x10; j++ )
     {
-        const char *psz_default = pppsz_info[0][j];
         for( int i = 0; i <= i_track_last; i++ )
         {
+            /* */
+            EnsureUTF8( pppsz_info[i][j] );
+
+            /* */
+            const char *psz_default = pppsz_info[0][j];
             const char *psz_value = pppsz_info[i][j];
 
             if( !psz_value && !psz_default )