diff options
Diffstat (limited to '')
-rw-r--r-- | src/screen_search.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/screen_search.c b/src/screen_search.c index 3f07d4768..530883f67 100644 --- a/src/screen_search.c +++ b/src/screen_search.c @@ -276,19 +276,21 @@ search_advanced_query(char *query, mpdclient_t *c) * + the code below should live in mpdclient.c *----------------------------------------------------------------------- */ - mpd_InfoEntity *entity; - /** stupid - but this is just a test...... (fulhack) */ + mpd_startSearch(c->connection, FALSE); + int iter; - for(iter = 0; i < 10; i++) + for(iter = 0; iter < 10; iter++) { - mpd_addConstraintSearch(c->connection, table[i], arg[i]); + mpd_addConstraintSearch(c->connection, table[iter], arg[iter]); } mpd_commitSearch(c->connection); filelist = g_malloc0(sizeof(mpdclient_filelist_t)); + mpd_InfoEntity *entity; + while( (entity=mpd_getNextInfoEntity(c->connection)) ) { filelist_entry_t *entry = g_malloc0(sizeof(filelist_entry_t)); |