aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder_internal.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-04-13 19:25:53 +0200
committerMax Kellermann <max@duempel.org>2009-04-13 19:25:53 +0200
commit200be2637171a52fce9f23a858dc1c4476fcb7a3 (patch)
treeb5217a3087d5657e0a50930bcf9941785be1268b /src/decoder_internal.h
parent99a88988d57d5da5888eb1b82479a8600be6df2f (diff)
downloadmpd-200be2637171a52fce9f23a858dc1c4476fcb7a3.tar.gz
mpd-200be2637171a52fce9f23a858dc1c4476fcb7a3.tar.xz
mpd-200be2637171a52fce9f23a858dc1c4476fcb7a3.zip
decoder_api: submit the song tag to the music pipe
When a new song starts playing, send its tag (song->tag) to the music pipe. This allows output plugins to render tags for all songs, not only those with embedded tags understood by the decoder plugin.
Diffstat (limited to 'src/decoder_internal.h')
-rw-r--r--src/decoder_internal.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/decoder_internal.h b/src/decoder_internal.h
index 566c49768..cf54dbf6d 100644
--- a/src/decoder_internal.h
+++ b/src/decoder_internal.h
@@ -30,6 +30,13 @@ struct decoder {
bool seeking;
+ /**
+ * The tag from the song object. This is only used for local
+ * files, because we expect the stream server to send us a new
+ * tag each time we play it.
+ */
+ struct tag *song_tag;
+
/** the last tag received from the stream */
struct tag *stream_tag;