[vlc-devel] commit: use MetaMatch in search instead compare to possible NULL value ( Ilkka Ollakka )
git version control
git at videolan.org
Sun Dec 21 13:57:42 CET 2008
vlc | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Sun Dec 21 14:54:22 2008 +0200| [e86912069b5d24754b1ee38426813d7881bd2368] | committer: Ilkka Ollakka
use MetaMatch in search instead compare to possible NULL value
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e86912069b5d24754b1ee38426813d7881bd2368
---
src/playlist/search.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/playlist/search.c b/src/playlist/search.c
index 7c731fc..462e26a 100644
--- a/src/playlist/search.c
+++ b/src/playlist/search.c
@@ -150,7 +150,7 @@ static bool playlist_LiveSearchUpdateInternal( playlist_t *p_playlist,
}
else
{
- if( strcasestr( p_item->p_input->psz_name, psz_string ) || /* Soon to be replaced by vlc_meta_Title */
+ if( input_item_MetaMatch( p_item->p_input, vlc_meta_Title, psz_string ) ||
input_item_MetaMatch( p_item->p_input, vlc_meta_Album, psz_string ) ||
input_item_MetaMatch( p_item->p_input, vlc_meta_Artist, psz_string ) )
{
More information about the vlc-devel
mailing list