From 8af4aca43ad1939c578f24e998d2d2ff58e7cc2c Mon Sep 17 00:00:00 2001 From: Sergio Date: Mon, 16 Jun 2014 15:48:00 +0200 Subject: fifo silence bug fix --- src/FileInput.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/FileInput.cpp') diff --git a/src/FileInput.cpp b/src/FileInput.cpp index 9ec988b..b116e80 100644 --- a/src/FileInput.cpp +++ b/src/FileInput.cpp @@ -96,6 +96,14 @@ ssize_t FileInput::read(uint8_t* buf, size_t length) return pcmread; } +int FileInput::eof() +{ + int eof=feof(m_in_fh); + clearerr(m_in_fh); + return eof; +} + + FileInput::~FileInput() { if (m_raw_input && m_in_fh) { -- cgit v1.2.3