aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-11-02 17:07:31 +0100
committerMax Kellermann <max@duempel.org>2008-11-02 17:07:31 +0100
commit5183d858864bcb221ee30d805792a6926b8e0544 (patch)
tree0a784b6efe09df8456669d007ee1e5b4aa205993
parentaa9b31f1cfdb8a05cc739c67a33ba5b7a84d8f51 (diff)
downloadmpd-5183d858864bcb221ee30d805792a6926b8e0544.tar.gz
mpd-5183d858864bcb221ee30d805792a6926b8e0544.tar.xz
mpd-5183d858864bcb221ee30d805792a6926b8e0544.zip
player: send chunk tag to audio device
If a chunk contains a tag, send it to the audio output device. Few output plugins support this, e.g. shout has support for sending tags.
Diffstat (limited to '')
-rw-r--r--src/player_thread.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/player_thread.c b/src/player_thread.c
index 1507d11b5..75badbb56 100644
--- a/src/player_thread.c
+++ b/src/player_thread.c
@@ -213,6 +213,9 @@ playChunk(struct music_chunk *chunk, const struct audio_format *format,
pc.elapsedTime = chunk->times;
pc.bitRate = chunk->bit_rate;
+ if (chunk->tag != NULL)
+ sendMetadataToAudioDevice(chunk->tag);
+
pcm_volume(chunk->data, chunk->length,
format, pc.softwareVolume);