From ac96022c1de5573b9c4ff03990ac07c4bba8e3f9 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 3 Nov 2008 18:24:01 +0100 Subject: 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. --- src/decoder_internal.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/decoder_internal.h') diff --git a/src/decoder_internal.h b/src/decoder_internal.h index 7a36e011c..9d3d6abea 100644 --- a/src/decoder_internal.h +++ b/src/decoder_internal.h @@ -28,6 +28,9 @@ struct decoder { struct pcm_convert_state conv_state; bool seeking; + + /** has the tag from the input stream been sent yet? */ + bool stream_tag_sent; }; #endif -- cgit v1.2.3