diff --git a/src/mpdclient.c b/src/mpdclient.c
index 42cc576d3a31e297543f27b371f77d372a1df015..eaef01f65399208d360c208535fa6fb2fc3d5bcd 100644 (file)
--- a/src/mpdclient.c
+++ b/src/mpdclient.c
mpd_InfoEntity *entity;
mpd_sendLsInfoCommand(c->connection, path);
- filelist = filelist_new(path);
+ filelist = filelist_new();
if (path && path[0] && strcmp(path, "/"))
/* add a dummy entry for ./.. */
filelist_append(filelist, NULL);
mpd_sendFindCommand(c->connection, table, filter_utf8);
else
mpd_sendSearchCommand(c->connection, table, filter_utf8);
- filelist = filelist_new(NULL);
+ filelist = filelist_new();
while ((entity=mpd_getNextInfoEntity(c->connection)))
filelist_append(filelist, entity);
return filelist;
}
-mpdclient_filelist_t *
-mpdclient_filelist_update(mpdclient_t *c, mpdclient_filelist_t *filelist)
-{
- if (filelist != NULL) {
- gchar *path = g_strdup(filelist->path);
-
- filelist_free(filelist);
- filelist = mpdclient_filelist_get(c, path);
- g_free(path);
- return filelist;
- }
- return NULL;
-}
-
int
mpdclient_filelist_add_all(mpdclient_t *c, mpdclient_filelist_t *fl)
{