diff options
author | waker <wakeroid@gmail.com> | 2012-04-23 22:34:50 +0200 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2012-04-23 22:34:50 +0200 |
commit | 3269cd672a9a5493f368be1a7a3f3b29e3f92199 (patch) | |
tree | 0d89283de4bbf892ef68e1a19a6fd1c8d5092483 /playlist.c | |
parent | 9bed24b48feec51db9cff6aee2d7860dce8187b6 (diff) |
fixed ignoring cuesheet and log in search
Diffstat (limited to 'playlist.c')
-rw-r--r-- | playlist.c | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -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; } |