diff options
author | Max Kellermann <max@duempel.org> | 2014-07-12 01:33:12 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-07-12 02:23:48 +0200 |
commit | b2b95cad20846bb3235787c266c1723acf38f971 (patch) | |
tree | 182ef28088df9638d1a369b02b346504b2a224b9 /src/decoder/DecoderBuffer.hxx | |
parent | eabec967ec3e431c10f50e5e83331ea0e5a4950f (diff) | |
download | mpd-b2b95cad20846bb3235787c266c1723acf38f971.tar.gz mpd-b2b95cad20846bb3235787c266c1723acf38f971.tar.xz mpd-b2b95cad20846bb3235787c266c1723acf38f971.zip |
DecoderBuffer: add method _need()
Move code from the FAAD decoder plugin.
Diffstat (limited to 'src/decoder/DecoderBuffer.hxx')
-rw-r--r-- | src/decoder/DecoderBuffer.hxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/decoder/DecoderBuffer.hxx b/src/decoder/DecoderBuffer.hxx index ad9750eda..4a482be75 100644 --- a/src/decoder/DecoderBuffer.hxx +++ b/src/decoder/DecoderBuffer.hxx @@ -91,6 +91,13 @@ ConstBuffer<void> decoder_buffer_read(const DecoderBuffer *buffer); /** + * Wait until this number of bytes are available. Returns nullptr on + * error. + */ +ConstBuffer<void> +decoder_buffer_need(DecoderBuffer *buffer, size_t min_size); + +/** * Consume (delete, invalidate) a part of the buffer. The "nbytes" * parameter must not be larger than the length returned by * decoder_buffer_read(). |