summaryrefslogtreecommitdiff
path: root/playlist.c
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2009-12-30 19:23:24 +0100
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2009-12-30 19:23:24 +0100
commit816b2d30ae921bd8348f467c987a45fc3b65f527 (patch)
tree49bd330ad34cfc83b4116aeae3af9170f563baa9 /playlist.c
parentc6d490fb6674263dbefe3cfb493cf5f230cde32c (diff)
exluded cuesheet metadata from pl_search_process
Diffstat (limited to 'playlist.c')
-rw-r--r--playlist.c9
1 files changed, 8 insertions, 1 deletions
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]) {