summaryrefslogtreecommitdiffstats
path: root/src/FileInput.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/FileInput.cpp')
-rw-r--r--src/FileInput.cpp8
1 files changed, 8 insertions, 0 deletions
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) {