aboutsummaryrefslogtreecommitdiffstats
path: root/src/screen_search.c
diff options
context:
space:
mode:
authorAndreas Obergrusberger <tradiaz@yahoo.de>2006-11-11 20:11:32 +0000
committerAndreas Obergrusberger <tradiaz@yahoo.de>2006-11-11 20:11:32 +0000
commit7f611951dc9f46941c7db2daeb9f3d6f084d7c20 (patch)
tree9e10c57da8d63fadb76a72f984a3275c0cd0b9b6 /src/screen_search.c
parentaee50deefe83ea3a79255cb64a252c58775f8a5b (diff)
downloadmpd-7f611951dc9f46941c7db2daeb9f3d6f084d7c20.tar.gz
mpd-7f611951dc9f46941c7db2daeb9f3d6f084d7c20.tar.xz
mpd-7f611951dc9f46941c7db2daeb9f3d6f084d7c20.zip
Daniel rocked the house
git-svn-id: https://svn.musicpd.org/ncmpc/branches/tradiaz@5041 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--src/screen_search.c10
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));