diff options
author | Max Kellermann <max@duempel.org> | 2013-08-04 13:54:14 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-08-04 14:07:50 +0200 |
commit | fe53a376a3c2d6e7aa14c73df56df816e2d89d6f (patch) | |
tree | fd558f8cc84de5d1abe1059c152349e5eb8bb73c /src/playlist/SoundCloudPlaylistPlugin.cxx | |
parent | 65842cd99e82e30801bf287cd027c14e4ce3bd15 (diff) | |
download | mpd-fe53a376a3c2d6e7aa14c73df56df816e2d89d6f.tar.gz mpd-fe53a376a3c2d6e7aa14c73df56df816e2d89d6f.tar.xz mpd-fe53a376a3c2d6e7aa14c73df56df816e2d89d6f.zip |
PlaylistPlugin: pass config_param reference
Diffstat (limited to 'src/playlist/SoundCloudPlaylistPlugin.cxx')
-rw-r--r-- | src/playlist/SoundCloudPlaylistPlugin.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/playlist/SoundCloudPlaylistPlugin.cxx b/src/playlist/SoundCloudPlaylistPlugin.cxx index 01055d1c9..ce9bd1385 100644 --- a/src/playlist/SoundCloudPlaylistPlugin.cxx +++ b/src/playlist/SoundCloudPlaylistPlugin.cxx @@ -35,10 +35,9 @@ static struct { } soundcloud_config; static bool -soundcloud_init(const struct config_param *param) +soundcloud_init(const config_param ¶m) { - soundcloud_config.apikey = - config_dup_block_string(param, "apikey", NULL); + soundcloud_config.apikey = param.DupBlockString("apikey"); if (soundcloud_config.apikey == NULL) { g_debug("disabling the soundcloud playlist plugin " "because API key is not set"); |