Commit 11e0b5e5 authored by Laurent Aimar's avatar Laurent Aimar

Do not call EnsureUTF8 on NULL string (cdtext).

parent b1e0a03d
......@@ -1330,7 +1330,8 @@ static int CdTextParse( vlc_meta_t ***ppp_tracks, int *pi_tracks,
for( int i = 0; i <= i_track_last; i++ )
{
/* */
EnsureUTF8( pppsz_info[i][j] );
if( pppsz_info[i][j] )
EnsureUTF8( pppsz_info[i][j] );
/* */
const char *psz_default = pppsz_info[0][j];
......
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