aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder_api.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/decoder_api.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/decoder_api.c b/src/decoder_api.c
index e2879808d..bab24daed 100644
--- a/src/decoder_api.c
+++ b/src/decoder_api.c
@@ -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;
+}