summaryrefslogtreecommitdiff
path: root/src/playlist
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2018-07-17 21:08:41 +0200
committerMax Kellermann <max@musicpd.org>2018-07-17 21:08:41 +0200
commit5b192beaa5cb8f007b04bb4c52fc2076c12107c6 (patch)
treeea316e7beb98cbf6b6870d0d545d89f77425d0c7 /src/playlist
parentef38330d748742945a781ef520ffd4de2d1f9301 (diff)
config/Global: remove ConfigBlock::SetUsed() call, let caller do that
This fixes an old bug which caused the "unused" warnings to be unreliable; only the first block in the list was marked as being "used", no matter if it was really used, and the rest was never marked as "used", suppressing all warnings for them.
Diffstat (limited to 'src/playlist')
-rw-r--r--src/playlist/PlaylistRegistry.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/playlist/PlaylistRegistry.cxx b/src/playlist/PlaylistRegistry.cxx
index 446db1636..8736546b2 100644
--- a/src/playlist/PlaylistRegistry.cxx
+++ b/src/playlist/PlaylistRegistry.cxx
@@ -90,6 +90,9 @@ playlist_list_global_init(void)
/* the plugin is disabled in mpd.conf */
continue;
+ if (param != nullptr)
+ param->SetUsed();
+
playlist_plugins_enabled[i] =
playlist_plugin_init(playlist_plugins[i], *param);
}