diff options
author | Max Kellermann <max@duempel.org> | 2012-08-08 09:26:04 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2012-08-08 09:28:13 +0200 |
commit | 346e31efa02bfead10b3d43e9bcebef7d023a2e3 (patch) | |
tree | 55de7bada36593dd36501b6f08c96d1e8b91628c | |
parent | b504d631171c27969115f12e761aebb20d923028 (diff) | |
download | mpd-346e31efa02bfead10b3d43e9bcebef7d023a2e3.tar.gz mpd-346e31efa02bfead10b3d43e9bcebef7d023a2e3.tar.xz mpd-346e31efa02bfead10b3d43e9bcebef7d023a2e3.zip |
ProxyDatabasePlugin: obey the "recursive" flag
-rw-r--r-- | src/db/ProxyDatabasePlugin.cxx | 5 |
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; |