decoder_api: added decoder_tag()

Provide an API for submitting additional tags from the stream.
This commit is contained in:
Max Kellermann
2008-11-02 17:02:28 +01:00
parent 5b13f067cd
commit 020c04e702
3 changed files with 30 additions and 2 deletions

View File

@@ -190,3 +190,16 @@ decoder_data(struct decoder *decoder,
return DECODE_COMMAND_NONE;
}
enum decoder_command
decoder_tag(mpd_unused struct decoder *decoder, struct input_stream *is,
const struct tag *tag)
{
while (!music_pipe_tag(tag)) {
enum decoder_command cmd = need_chunks(is);
if (cmd != DECODE_COMMAND_NONE)
return cmd;
}
return DECODE_COMMAND_NONE;
}