aboutsummaryrefslogtreecommitdiffstats
path: root/src/inputs/InputFile.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2013-12-22 16:11:43 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2013-12-24 18:09:27 +0100
commitb0183733ef4c6f08ef8c7b73155268e54ca3f152 (patch)
tree5aa855d5dc36badbf1b2268bef79db0257146853 /src/inputs/InputFile.cpp
parent7094945ef7ecb8a918dfe3b4619bdc6f239cbb50 (diff)
downloaddabmux-b0183733ef4c6f08ef8c7b73155268e54ca3f152.tar.gz
dabmux-b0183733ef4c6f08ef8c7b73155268e54ca3f152.tar.bz2
dabmux-b0183733ef4c6f08ef8c7b73155268e54ca3f152.zip
InputBuffered know how to split frames
Diffstat (limited to 'src/inputs/InputFile.cpp')
-rw-r--r--src/inputs/InputFile.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/inputs/InputFile.cpp b/src/inputs/InputFile.cpp
index da45456..6b56cc5 100644
--- a/src/inputs/InputFile.cpp
+++ b/src/inputs/InputFile.cpp
@@ -42,6 +42,7 @@
int InputFile::Open()
{
+ fprintf(stderr, "Opening %s\n", m_filename.c_str());
this->file = open(this->m_filename.c_str(), O_RDONLY | O_BINARY);
if (this->file == -1) {
perror(m_filename.c_str());
@@ -50,7 +51,6 @@ int InputFile::Open()
return 0;
}
-#if 0
/**
* This function replace the read function by trying many times a reading.
* It tries to read until all bytes are read. Very useful when reading from a
@@ -86,7 +86,6 @@ long InputFile::ReadData(void* data, size_t size, unsigned int tries)
offset += result;
return offset;
}
-#endif
int InputFile::Rewind()