From 8232afa98191969bacaf8cff9ecf9b39d6e1c294 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Sun, 6 Mar 2016 12:59:26 +0100 Subject: MPEG zmq input bugfix --- src/dabInputZmq.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/dabInputZmq.cpp b/src/dabInputZmq.cpp index e5a1654..70fd0c8 100644 --- a/src/dabInputZmq.cpp +++ b/src/dabInputZmq.cpp @@ -376,7 +376,7 @@ int DabInputZmqMPEG::readFromSocket(size_t framesize) } - if (datalen) + if (datalen == framesize) { if (m_frame_buffer.size() > m_config.buffer_size) { etiLog.level(warn) << @@ -398,7 +398,7 @@ int DabInputZmqMPEG::readFromSocket(size_t framesize) else { etiLog.level(error) << "inputZMQ " << m_name << - " wrong data size: recv'd " << msg.size() << " Bytes" << + " verify bitrate: recv'd " << msg.size() << " B" << ", need " << framesize << "."; messageReceived = false; } @@ -479,7 +479,7 @@ int DabInputZmqAAC::readFromSocket(size_t framesize) else { etiLog.level(error) << "inputZMQ " << m_name << - " wrong data size: recv'd " << msg.size() << + " verify bitrate: recv'd " << msg.size() << " B" << ", need " << 5*framesize << "."; datalen = 0; -- cgit v1.2.3