From b0212a3779b165ba717bf98f1f825e43e01625d4 Mon Sep 17 00:00:00 2001 From: Andrzej Rybczak Date: Sun, 4 Oct 2009 16:14:45 +0200 Subject: [PATCH] fix MPD::Connection::GetDirectories() they should return only dirs from main dir, not from all subdirs --- src/mpdpp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mpdpp.cpp b/src/mpdpp.cpp index 54e761fb..56b7b846 100644 --- a/src/mpdpp.cpp +++ b/src/mpdpp.cpp @@ -720,7 +720,7 @@ void Connection::GetDirectories(const std::string &path, TagList &v) const { if (isConnected) { - mpd_send_list_all(itsConnection, path.c_str()); + mpd_send_list_meta(itsConnection, path.c_str()); while (mpd_directory *dir = mpd_recv_directory(itsConnection)) { v.push_back(mpd_directory_get_path(dir));