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.
This commit is contained in:
Max Kellermann
2008-11-03 18:24:01 +01:00
parent 8bb2da063f
commit ac96022c1d
5 changed files with 60 additions and 51 deletions

View File

@@ -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;