From 211d6a06ab5a286c623d2dce901115dec316a31d Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Sat, 21 Dec 2013 17:46:41 +0100 Subject: Add InputBuffered --- src/inputs/InputDabplusFile.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/inputs/InputDabplusFile.cpp') diff --git a/src/inputs/InputDabplusFile.cpp b/src/inputs/InputDabplusFile.cpp index b55b3d9..ad76f9c 100644 --- a/src/inputs/InputDabplusFile.cpp +++ b/src/inputs/InputDabplusFile.cpp @@ -49,7 +49,7 @@ extern TcpLog etiLog; -int InputDabplusFile::Read(void* buffer, int size) +int InputDabplusFile::ReadSuperFrame(void* buffer, int size) { if (this->buffer.size() != size * 5) { this->buffer.resize(size * 5); @@ -73,12 +73,12 @@ int InputDabplusFile::Read(void* buffer, int size) return size; } -int InputDabplusFile::ReadFrame(void* buffer, int size) +int InputDabplusFile::ReadSource(void* buffer, int size) { int result; uint8_t* dataOut = reinterpret_cast(buffer); - result = Read(dataOut, size); + result = ReadSuperFrame(dataOut, size); if (result == -1) { etiLog.print(TcpLog::CRIT, "ERROR: Can't read file\n"); perror(""); @@ -92,7 +92,7 @@ int InputDabplusFile::ReadFrame(void* buffer, int size) return -1; } - result = Read(dataOut + sizeOut, size - sizeOut); + result = ReadSuperFrame(dataOut + sizeOut, size - sizeOut); if (result == -1) { etiLog.print(TcpLog::CRIT, "ERROR: Can't read file\n"); perror(""); -- cgit v1.2.3