From 020c04e7020226a258e6dbffe3435944264823d1 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 2 Nov 2008 17:02:28 +0100 Subject: decoder_api: added decoder_tag() Provide an API for submitting additional tags from the stream. --- src/decoder/oggvorbis_plugin.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/decoder/oggvorbis_plugin.c') diff --git a/src/decoder/oggvorbis_plugin.c b/src/decoder/oggvorbis_plugin.c index d950c4e1d..47192ae68 100644 --- a/src/decoder/oggvorbis_plugin.c +++ b/src/decoder/oggvorbis_plugin.c @@ -179,7 +179,9 @@ static struct tag *oggCommentsParse(char **comments) return tag; } -static void putOggCommentsIntoOutputBuffer(char *streamName, +static void putOggCommentsIntoOutputBuffer(struct decoder *decoder, + struct input_stream *is, + char *streamName, char **comments) { struct tag *tag; @@ -196,6 +198,7 @@ static void putOggCommentsIntoOutputBuffer(char *streamName, tag_add_item(tag, TAG_ITEM_NAME, streamName); } + decoder_tag(decoder, is, tag); tag_free(tag); } @@ -284,7 +287,8 @@ oggvorbis_decode(struct decoder *decoder, struct input_stream *inStream) initialized = true; } comments = ov_comment(&vf, -1)->user_comments; - putOggCommentsIntoOutputBuffer(inStream->meta_name, + putOggCommentsIntoOutputBuffer(decoder, inStream, + inStream->meta_name, comments); ogg_getReplayGainInfo(comments, &replayGainInfo); } -- cgit v1.2.3