aboutsummaryrefslogtreecommitdiffstats
path: root/src/db/ProxyDatabasePlugin.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2012-08-08 09:26:04 +0200
committerMax Kellermann <max@duempel.org>2012-08-08 09:28:13 +0200
commit346e31efa02bfead10b3d43e9bcebef7d023a2e3 (patch)
tree55de7bada36593dd36501b6f08c96d1e8b91628c /src/db/ProxyDatabasePlugin.cxx
parentb504d631171c27969115f12e761aebb20d923028 (diff)
downloadmpd-346e31efa02bfead10b3d43e9bcebef7d023a2e3.tar.gz
mpd-346e31efa02bfead10b3d43e9bcebef7d023a2e3.tar.xz
mpd-346e31efa02bfead10b3d43e9bcebef7d023a2e3.zip
ProxyDatabasePlugin: obey the "recursive" flag
Diffstat (limited to 'src/db/ProxyDatabasePlugin.cxx')
-rw-r--r--src/db/ProxyDatabasePlugin.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/db/ProxyDatabasePlugin.cxx b/src/db/ProxyDatabasePlugin.cxx
index b941b9576..3a2f9c2cf 100644
--- a/src/db/ProxyDatabasePlugin.cxx
+++ b/src/db/ProxyDatabasePlugin.cxx
@@ -168,8 +168,9 @@ Visit(struct mpd_connection *connection, directory &parent,
directory_new(mpd_directory_get_path(directory), &parent);
bool success = (!visit_directory || visit_directory(*d, error_r)) &&
- Visit(connection, *d, recursive,
- visit_directory, visit_song, visit_playlist, error_r);
+ (!recursive ||
+ Visit(connection, *d, recursive,
+ visit_directory, visit_song, visit_playlist, error_r));
directory_free(d);
return success;