[vlc-commits] commit: Fix segfault in preparser (Francois Cartegnie )
git at videolan.org
git at videolan.org
Fri Apr 16 16:08:22 CEST 2010
vlc/vlc-1.0 | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu Apr 15 22:51:19 2010 +0200| [4053dabdc73c539a5a00e520f942d42d05c28879] | committer: Rémi Denis-Courmont
Fix segfault in preparser
Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>
(cherry picked from commit 7fa10ce696573f2be5ba3684c7cdfa88021282f6)
> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.0.git/?a=commit;h=4053dabdc73c539a5a00e520f942d42d05c28879
---
src/playlist/preparser.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/playlist/preparser.c b/src/playlist/preparser.c
index 74b3961..4704932 100644
--- a/src/playlist/preparser.c
+++ b/src/playlist/preparser.c
@@ -160,13 +160,15 @@ static void Art( playlist_preparser_t *p_preparser, input_item_t *p_item )
if( p_preparser->i_art_policy == ALBUM_ART_ALL &&
( !psz_arturl || strncmp( psz_arturl, "file://", 7 ) ) )
{
- msg_Dbg( p_playlist, "meta ok for %s, need to fetch art", psz_name );
+ msg_Dbg( p_playlist, "meta ok for %s, need to fetch art",
+ psz_name ? psz_name : "(null)" );
b_fetch = true;
}
else
{
msg_Dbg( p_playlist, "no fetch required for %s (art currently %s)",
- psz_name, psz_arturl );
+ psz_name ? psz_name : "(null)",
+ psz_arturl ? psz_arturl : "(null)" );
}
}
vlc_mutex_unlock( &p_item->lock );
More information about the vlc-commits
mailing list