]> git.sesse.net Git - vlc/commitdiff
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 c132288a5dd8ecd2d7f25767b157ceebdee6ff4d..bf5b03f98ea6bed5c01a8ad831ac58fc9d930e47 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 )