Commit 2c82a6b2 authored by Max Kellermann's avatar Max Kellermann

output/shout: handle shout_metadata_add() errors

Fixes -Wunused-result
parent 3929f17a
...@@ -446,9 +446,9 @@ ShoutOutput::SendTag(const Tag &tag) ...@@ -446,9 +446,9 @@ ShoutOutput::SendTag(const Tag &tag)
char song[1024]; char song[1024];
shout_tag_to_metadata(tag, song, sizeof(song)); shout_tag_to_metadata(tag, song, sizeof(song));
shout_metadata_add(meta, "song", song); if (SHOUTERR_SUCCESS != shout_metadata_add(meta, "song", song) ||
shout_metadata_add(meta, "charset", "UTF-8"); SHOUTERR_SUCCESS != shout_metadata_add(meta, "charset", "UTF-8") ||
if (SHOUTERR_SUCCESS != shout_set_metadata(shout_conn, meta)) { SHOUTERR_SUCCESS != shout_set_metadata(shout_conn, meta)) {
LogWarning(shout_output_domain, LogWarning(shout_output_domain,
"error setting shout metadata"); "error setting shout metadata");
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment