diff options
author | Andrzej Rybczak <electricityispower@gmail.com> | 2009-10-04 16:10:37 +0200 |
---|---|---|
committer | Andrzej Rybczak <electricityispower@gmail.com> | 2009-10-04 16:10:37 +0200 |
commit | de6db568c1d051d405ba4077b6552eb3ea5067d3 (patch) | |
tree | dcb4101bcb8e062ed835fd03db8ad33390a13039 /src/media_library.cpp | |
parent | 0d9f6fab7d203c3dabc6d5fdfa616e6f12b5ebf0 (diff) |
fix broken compilation due to lack of setters for mpd_song
Diffstat (limited to 'src/media_library.cpp')
-rw-r--r-- | src/media_library.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/media_library.cpp b/src/media_library.cpp index 0ea535b4..e9a8cfce 100644 --- a/src/media_library.cpp +++ b/src/media_library.cpp @@ -197,13 +197,14 @@ void MediaLibrary::Update() // <mpd-0.14 doesn't support searching for empty tag if (Mpd.Version() > 13) { - TagList noalbum_list; - Mpd.StartFieldSearch(MPD_TAG_FILE); + SongList noalbum_list; + Mpd.StartSearch(1); Mpd.AddSearch(Config.media_lib_primary_tag, Artists->Current()); Mpd.AddSearch(MPD_TAG_ALBUM, ""); Mpd.CommitSearch(noalbum_list); if (!noalbum_list.empty()) Albums->AddOption(std::make_pair("<no album>", SearchConstraints("", ""))); + FreeSongList(noalbum_list); } for (TagList::const_iterator it = list.begin(); it != list.end(); ++it) |