From 3269cd672a9a5493f368be1a7a3f3b29e3f92199 Mon Sep 17 00:00:00 2001 From: waker Date: Mon, 23 Apr 2012 22:34:50 +0200 Subject: fixed ignoring cuesheet and log in search --- playlist.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'playlist.c') diff --git a/playlist.c b/playlist.c index 4975faf0..2c07fccf 100644 --- a/playlist.c +++ b/playlist.c @@ -3531,9 +3531,6 @@ plt_search_process (playlist_t *playlist, const char *text) { } *out = 0; - const char *cuesheet = metacache_add_string ("cuesheet"); - const char *log = metacache_add_string("log"); - static int cmpidx = 0; cmpidx++; if (cmpidx > 127) { @@ -3548,7 +3545,7 @@ plt_search_process (playlist_t *playlist, const char *text) { if (m->key[0] == ':' || m->key[0] == '_' || m->key[0] == '!') { break; } - if (m->key!=cuesheet && m->key!=log) { + if (strcasecmp(m->key, "cuesheet") && strcasecmp (m->key, "log")) { char cmp = *(m->value-1); if (abs (cmp) == cmpidx) { @@ -3589,8 +3586,6 @@ plt_search_process (playlist_t *playlist, const char *text) { } } } - metacache_remove_string (cuesheet); - metacache_remove_string(log); UNLOCK; } -- cgit v1.2.3