From 657d6edff76ea11eb192b32b8266d060a2d8be0b Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 10 Jul 2016 21:52:39 +0200 Subject: [PATCH] decoder/flac: add FlacInput getter methods --- src/decoder/plugins/FlacInput.hxx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/decoder/plugins/FlacInput.hxx b/src/decoder/plugins/FlacInput.hxx index 67a6d6040..d1ebaa9ab 100644 --- a/src/decoder/plugins/FlacInput.hxx +++ b/src/decoder/plugins/FlacInput.hxx @@ -39,6 +39,14 @@ public: Decoder *_decoder=nullptr) :decoder(_decoder), input_stream(_input_stream) {} + Decoder *GetDecoder() { + return decoder; + } + + InputStream &GetInputStream() { + return input_stream; + } + protected: FLAC__StreamDecoderReadStatus Read(FLAC__byte buffer[], size_t *bytes); FLAC__StreamDecoderSeekStatus Seek(FLAC__uint64 absolute_byte_offset);