diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2013-12-22 11:24:24 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2013-12-24 18:09:27 +0100 |
commit | 7094945ef7ecb8a918dfe3b4619bdc6f239cbb50 (patch) | |
tree | bb1926ca2eb7dfcc7ab3878e8af7549a88f4978c | |
parent | 211d6a06ab5a286c623d2dce901115dec316a31d (diff) | |
download | dabmux-7094945ef7ecb8a918dfe3b4619bdc6f239cbb50.tar.gz dabmux-7094945ef7ecb8a918dfe3b4619bdc6f239cbb50.tar.bz2 dabmux-7094945ef7ecb8a918dfe3b4619bdc6f239cbb50.zip |
inputfile correction
-rw-r--r-- | src/inputs/InputFile.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/inputs/InputFile.cpp b/src/inputs/InputFile.cpp index 58c3ada..da45456 100644 --- a/src/inputs/InputFile.cpp +++ b/src/inputs/InputFile.cpp @@ -42,14 +42,15 @@ int InputFile::Open() { - this->file = open(this->filename.c_str(), O_RDONLY | O_BINARY); + this->file = open(this->m_filename.c_str(), O_RDONLY | O_BINARY); if (this->file == -1) { - perror(filename.c_str()); + perror(m_filename.c_str()); return -1; } 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 @@ -85,7 +86,7 @@ long InputFile::ReadData(void* data, size_t size, unsigned int tries) offset += result; return offset; } - +#endif int InputFile::Rewind() |