git.videolan.org
/
vlc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b1e0a03
)
Do not call EnsureUTF8 on NULL string (cdtext).
author
Laurent Aimar
<fenrir@videolan.org>
Fri, 15 May 2009 21:20:15 +0000
(23:20 +0200)
committer
Laurent Aimar
<fenrir@videolan.org>
Fri, 15 May 2009 23:03:32 +0000
(
01:03
+0200)
modules/access/vcd/cdrom.c
patch
|
blob
|
history
diff --git
a/modules/access/vcd/cdrom.c
b/modules/access/vcd/cdrom.c
index
10c5a7d
..
22b29de
100644
(file)
--- a/
modules/access/vcd/cdrom.c
+++ b/
modules/access/vcd/cdrom.c
@@
-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];