diff options
author | Max Kellermann <max@duempel.org> | 2014-12-26 22:27:01 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-12-26 22:27:01 +0100 |
commit | 58a5da33c243c057ac4f70ffcfa179b9710161d2 (patch) | |
tree | 389077b8e9f78c001daf40a8e1b1d7bd562414c4 /src/output/plugins/ShoutOutputPlugin.cxx | |
parent | 7077eac589bf828188e7dbcfb4ac6002203063d4 (diff) | |
download | mpd-58a5da33c243c057ac4f70ffcfa179b9710161d2.tar.gz mpd-58a5da33c243c057ac4f70ffcfa179b9710161d2.tar.xz mpd-58a5da33c243c057ac4f70ffcfa179b9710161d2.zip |
OutputPlugin: pass Tag reference to _send_tag()
Diffstat (limited to '')
-rw-r--r-- | src/output/plugins/ShoutOutputPlugin.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/output/plugins/ShoutOutputPlugin.cxx b/src/output/plugins/ShoutOutputPlugin.cxx index b51f7ed82..014c246c0 100644 --- a/src/output/plugins/ShoutOutputPlugin.cxx +++ b/src/output/plugins/ShoutOutputPlugin.cxx @@ -462,7 +462,7 @@ my_shout_pause(AudioOutput *ao) } static void -shout_tag_to_metadata(const Tag *tag, char *dest, size_t size) +shout_tag_to_metadata(const Tag &tag, char *dest, size_t size) { char artist[size]; char title[size]; @@ -470,7 +470,7 @@ shout_tag_to_metadata(const Tag *tag, char *dest, size_t size) artist[0] = 0; title[0] = 0; - for (const auto &item : *tag) { + for (const auto &item : tag) { switch (item.type) { case TAG_ARTIST: strncpy(artist, item.value, size); @@ -488,7 +488,7 @@ shout_tag_to_metadata(const Tag *tag, char *dest, size_t size) } static void my_shout_set_tag(AudioOutput *ao, - const Tag *tag) + const Tag &tag) { ShoutOutput *sd = (ShoutOutput *)ao; @@ -498,7 +498,7 @@ static void my_shout_set_tag(AudioOutput *ao, Error error; if (!encoder_pre_tag(sd->encoder, error) || !write_page(sd, error) || - !encoder_tag(sd->encoder, tag, error)) { + !encoder_tag(sd->encoder, &tag, error)) { LogError(error); return; } |