aboutsummaryrefslogtreecommitdiffstats
path: root/src/inputs/InputDabplusFile.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2013-12-21 17:46:41 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2013-12-24 18:09:26 +0100
commit211d6a06ab5a286c623d2dce901115dec316a31d (patch)
tree40e60dc7b47aeea21292dec2748d4fc72663f5d0 /src/inputs/InputDabplusFile.cpp
parentabec4838d2536812a4fe382334a1c9f500f7728b (diff)
downloaddabmux-211d6a06ab5a286c623d2dce901115dec316a31d.tar.gz
dabmux-211d6a06ab5a286c623d2dce901115dec316a31d.tar.bz2
dabmux-211d6a06ab5a286c623d2dce901115dec316a31d.zip
Add InputBuffered
Diffstat (limited to 'src/inputs/InputDabplusFile.cpp')
-rw-r--r--src/inputs/InputDabplusFile.cpp8
1 files changed, 4 insertions, 4 deletions
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<uint8_t*>(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("");