]> git.sesse.net Git - vlc/commitdiff
use MetaMatch in search instead compare to possible NULL value
authorIlkka Ollakka <ileoo@videolan.org>
Sun, 21 Dec 2008 12:54:22 +0000 (14:54 +0200)
committerIlkka Ollakka <ileoo@videolan.org>
Sun, 21 Dec 2008 12:57:14 +0000 (14:57 +0200)
src/playlist/search.c

index 7c731fc449a5abceb397237345c6a510e55ce2ec..462e26a6c3fe47970570243b530371efdf3c6503 100644 (file)
@@ -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 ) )
             {