[vlc-devel] commit: use MetaMatch in search instead compare to possible NULL value ( Ilkka Ollakka )
git version control
git at videolan.org
Sun Jan 11 17:34:39 CET 2009
vlc | branch: 0.9-bugfix | Ilkka Ollakka <ileoo at videolan.org> | Sun Dec 21 14:54:22 2008 +0200| [2b7a8683fa7913778c957dcc22172b6286325c18] | committer: Ilkka Ollakka
use MetaMatch in search instead compare to possible NULL value
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2b7a8683fa7913778c957dcc22172b6286325c18
---
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 6f81a3d..fd3fef4 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