From 816b2d30ae921bd8348f467c987a45fc3b65f527 Mon Sep 17 00:00:00 2001 From: Alexey Yakovenko Date: Wed, 30 Dec 2009 19:23:24 +0100 Subject: exluded cuesheet metadata from pl_search_process --- playlist.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/playlist.c b/playlist.c index 2517d84a..e9022a81 100644 --- a/playlist.c +++ b/playlist.c @@ -66,6 +66,12 @@ pl_free (void) { while (playlist_head[PL_MAIN]) { pl_remove (playlist_head[PL_MAIN]); } + if (playlist_current_row[PL_MAIN] >= pl_count[PL_MAIN]) { + playlist_current_row[PL_MAIN] = pl_count[PL_MAIN]-1; + } + if (playlist_current_row[PL_SEARCH] >= pl_count[PL_SEARCH]) { + playlist_current_row[PL_SEARCH] = pl_count[PL_SEARCH]-1; + } } static const uint8_t * @@ -1914,7 +1920,8 @@ pl_search_process (const char *text) { if (*text) { for (metaInfo_t *m = it->meta; m; m = m->next) { // if (strcasestr (m->value, text)) { - if (utfcasestr (m->value, text)) { + if (strcasecmp (m->key, "cuesheet") && utfcasestr (m->value, text)) { + //fprintf (stderr, "%s -> %s match (%s.%s)\n", text, m->value, it->fname, m->key); // add to list it->next[PL_SEARCH] = NULL; if (playlist_tail[PL_SEARCH]) { -- cgit v1.2.3