aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder_thread.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-11-03 18:24:01 +0100
committerMax Kellermann <max@duempel.org>2008-11-03 18:24:01 +0100
commitac96022c1de5573b9c4ff03990ac07c4bba8e3f9 (patch)
treee40cd0334b1fd332c49e7aa48f8a7dbe308c2e0f /src/decoder_thread.c
parent8bb2da063f59e7586c61f88c1fb2d268e6191e5c (diff)
downloadmpd-ac96022c1de5573b9c4ff03990ac07c4bba8e3f9.tar.gz
mpd-ac96022c1de5573b9c4ff03990ac07c4bba8e3f9.tar.xz
mpd-ac96022c1de5573b9c4ff03990ac07c4bba8e3f9.zip
decoder_api: automatically send stream tag
If an input stream provides tags (e.g. from an icecast server), send them in the decoder_data() and decoder_tag() methods. Removed the according code from the mp3 and oggvorbis plugins - decoders shouldn't have to care about stream tags. This patch also adds the missing decoder_tag() invocation to the mp3 plugin.
Diffstat (limited to '')
-rw-r--r--src/decoder_thread.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/decoder_thread.c b/src/decoder_thread.c
index d66094cd2..040e34f84 100644
--- a/src/decoder_thread.c
+++ b/src/decoder_thread.c
@@ -72,6 +72,7 @@ static void decodeStart(void)
}
decoder.seeking = false;
+ decoder.stream_tag_sent = false;
dc.state = DECODE_STATE_START;
dc.command = DECODE_COMMAND_NONE;