[vlc-devel] commit: Revert " use MetaMatch in search instead compare to possible NULL value" ( Jean-Baptiste Kempf )

git version control git at videolan.org
Tue Mar 31 19:35:51 CEST 2009


vlc | branch: 0.9-bugfix | Jean-Baptiste Kempf <jb at videolan.org> | Tue Mar 31 19:27:25 2009 +0200| [64a409c97242f67d47b1d125d6699cefd555e9cc] | committer: Jean-Baptiste Kempf 

Revert "use MetaMatch in search instead compare to possible NULL value"

This reverts commit 2b7a8683fa7913778c957dcc22172b6286325c18.

This breaks all playlist searching for me.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=64a409c97242f67d47b1d125d6699cefd555e9cc
---

 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 720f481..1e6a566 100644
--- a/src/playlist/search.c
+++ b/src/playlist/search.c
@@ -171,7 +171,7 @@ static bool playlist_LiveSearchUpdateInternal( playlist_item_t *p_root,
         }
         else
         {
-            if( input_item_MetaMatch( p_item->p_input, vlc_meta_Title, psz_string ) ||
+            if( strcasestr( p_item->p_input->psz_name, psz_string ) || /* Soon to be replaced by vlc_meta_Title */
                 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