From 5183d858864bcb221ee30d805792a6926b8e0544 Mon Sep 17 00:00:00 2001
From: Max Kellermann <max@duempel.org>
Date: Sun, 2 Nov 2008 17:07:31 +0100
Subject: 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.
---
 src/player_thread.c | 3 +++
 1 file changed, 3 insertions(+)

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);
 
-- 
cgit v1.2.3