From 4d9d3b9bbc848b750d24738bebb28fb5e4707caf Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rafa=C3=ABl=20Carr=C3=A9?= Date: Sun, 9 Sep 2007 23:05:48 +0000 Subject: [PATCH] Fixes playlist search when metadata is missing --- include/vlc_input.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/vlc_input.h b/include/vlc_input.h index 2d30b9e30d..7161219e7e 100644 --- a/include/vlc_input.h +++ b/include/vlc_input.h @@ -238,6 +238,11 @@ static inline void input_item_SetMeta( input_item_t *p_i, vlc_meta_type_t meta_t static inline vlc_bool_t input_item_MetaMatch( input_item_t *p_i, vlc_meta_type_t meta_type, const char *psz ) { vlc_mutex_lock( &p_i->lock ); + if( !p_i->p_meta ) + { + vlc_mutex_unlock( &p_i->lock ); + return VLC_FALSE; + } const char * meta = vlc_meta_Get( p_i->p_meta, meta_type ); vlc_bool_t ret = meta && strcasestr( meta, psz ); vlc_mutex_unlock( &p_i->lock ); -- 2.39.2