aboutsummaryrefslogtreecommitdiffstats
path: root/src/outputBuffer_accessors.h
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2008-08-26 04:22:58 -0700
committerEric Wong <normalperson@yhbt.net>2008-08-26 04:26:48 -0700
commit9cb6d62a0302d8e49b2225b97602379db7566b5e (patch)
tree0ae4fc4a8376c4f6e78dfebae0724c78e346f9a9 /src/outputBuffer_accessors.h
parent4be65a911b6024dc924d1e7d016cab8c42179f71 (diff)
downloadmpd-9cb6d62a0302d8e49b2225b97602379db7566b5e.tar.gz
mpd-9cb6d62a0302d8e49b2225b97602379db7566b5e.tar.xz
mpd-9cb6d62a0302d8e49b2225b97602379db7566b5e.zip
Reimplement dynamic metadata handling
This has been tested for both playback of streams and outputting to streams, and seems to work fine with minimal locking. This reuses the sequence number infrastructure in OutputBuffer for synchronizing metadata payloads; so (IMNSHO) should be much more understandable than various flags being set here and there.. It could still use some cleanup and much testing, but synchronization issues should be minimal.
Diffstat (limited to '')
-rw-r--r--src/outputBuffer_accessors.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/outputBuffer_accessors.h b/src/outputBuffer_accessors.h
index 11c8887c8..2f4116b94 100644
--- a/src/outputBuffer_accessors.h
+++ b/src/outputBuffer_accessors.h
@@ -75,3 +75,14 @@ AudioFormat *ob_audio_format(void)
{
return &ob.audio_format;
}
+
+mpd_uint8 ob_get_decoder_sequence(void)
+{
+ return ob.seq_decoder;
+}
+
+mpd_uint8 ob_get_player_sequence(void)
+{
+ return ob.seq_player;
+}
+