aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-07-12 00:23:22 +0200
committerMax Kellermann <max@duempel.org>2014-07-12 00:23:22 +0200
commita7d9f248eab1af41fd5dbb31e394c07b8e059220 (patch)
tree3ae59461c9a7e25c158f4501b86918016039e334 /src
parent06aa68938357f4a567e1f89b51a593f11fea8fee (diff)
downloadmpd-a7d9f248eab1af41fd5dbb31e394c07b8e059220.tar.gz
mpd-a7d9f248eab1af41fd5dbb31e394c07b8e059220.tar.xz
mpd-a7d9f248eab1af41fd5dbb31e394c07b8e059220.zip
DecoderBuffer: add method _get_stream()
Diffstat (limited to '')
-rw-r--r--src/DecoderBuffer.cxx6
-rw-r--r--src/DecoderBuffer.hxx4
2 files changed, 10 insertions, 0 deletions
diff --git a/src/DecoderBuffer.cxx b/src/DecoderBuffer.cxx
index 0b326a6fd..78a2ccdc6 100644
--- a/src/DecoderBuffer.cxx
+++ b/src/DecoderBuffer.cxx
@@ -70,6 +70,12 @@ decoder_buffer_free(DecoderBuffer *buffer)
g_free(buffer);
}
+const InputStream &
+decoder_buffer_get_stream(const DecoderBuffer *buffer)
+{
+ return *buffer->is;
+}
+
bool
decoder_buffer_is_empty(const DecoderBuffer *buffer)
{
diff --git a/src/DecoderBuffer.hxx b/src/DecoderBuffer.hxx
index d09416b06..0eaf0c4f3 100644
--- a/src/DecoderBuffer.hxx
+++ b/src/DecoderBuffer.hxx
@@ -53,6 +53,10 @@ void
decoder_buffer_free(DecoderBuffer *buffer);
gcc_pure
+const InputStream &
+decoder_buffer_get_stream(const DecoderBuffer *buffer);
+
+gcc_pure
bool
decoder_buffer_is_empty(const DecoderBuffer *buffer);