From cb336ff666a8fb2958cfb35c36ffcf613b02cd70 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 14 Dec 2013 12:21:23 +0100 Subject: DecoderAPI: add function decoder_skip() Move code from the "mad" plugin. --- src/DecoderAPI.hxx | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/DecoderAPI.hxx') diff --git a/src/DecoderAPI.hxx b/src/DecoderAPI.hxx index df1b5c40d..f88503fed 100644 --- a/src/DecoderAPI.hxx +++ b/src/DecoderAPI.hxx @@ -116,6 +116,14 @@ decoder_read(Decoder &decoder, InputStream &is, return decoder_read(&decoder, is, buffer, length); } +/** + * Skip data on the #InputStream. + * + * @return true on success, false on error or command + */ +bool +decoder_skip(Decoder *decoder, InputStream &is, size_t size); + /** * Sets the time stamp for the next data chunk [seconds]. The MPD * core automatically counts it up, and a decoder plugin only needs to -- cgit v1.2.3