[vlc-devel] commit: Added missing EnsureUTF8 for CD-TEXT. (Laurent Aimar )

git version control git at videolan.org
Tue Feb 24 23:57:33 CET 2009


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Tue Feb 24 23:56:55 2009 +0100| [76daa01762824d225c785be408883112b78e1201] | committer: Laurent Aimar 

Added missing EnsureUTF8 for CD-TEXT.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=76daa01762824d225c785be408883112b78e1201
---

 modules/access/vcd/cdrom.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/modules/access/vcd/cdrom.c b/modules/access/vcd/cdrom.c
index c132288..bf5b03f 100644
--- a/modules/access/vcd/cdrom.c
+++ b/modules/access/vcd/cdrom.c
@@ -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 )




More information about the vlc-devel mailing list