aboutsummaryrefslogtreecommitdiffstats
path: root/src/dabOutput/dabOutput.h
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2014-09-26 11:20:29 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2014-09-26 11:20:29 +0200
commit59568916be86222b487d092ab057ec42194fded3 (patch)
treeca6bf386b7681ae362d6c9cef973323be6c921e1 /src/dabOutput/dabOutput.h
parentf1ad5e33b43787a64dfc0de56353755e71f4e87e (diff)
downloaddabmux-59568916be86222b487d092ab057ec42194fded3.tar.gz
dabmux-59568916be86222b487d092ab057ec42194fded3.tar.bz2
dabmux-59568916be86222b487d092ab057ec42194fded3.zip
Fix TIST transmission over ZMQ output
The last ETI frame in each ZMQ message was truncated, which inadvertedly zeroed the its TIST field.
Diffstat (limited to 'src/dabOutput/dabOutput.h')
-rw-r--r--src/dabOutput/dabOutput.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/dabOutput/dabOutput.h b/src/dabOutput/dabOutput.h
index 72a15d4..6048d51 100644
--- a/src/dabOutput/dabOutput.h
+++ b/src/dabOutput/dabOutput.h
@@ -278,9 +278,15 @@ struct zmq_dab_message_t
}
uint32_t version;
int16_t buflen[NUM_FRAMES_PER_ZMQ_MESSAGE];
+ /* The head stops here. Use the macro below to calculate
+ * the head size.
+ */
+
uint8_t buf[NUM_FRAMES_PER_ZMQ_MESSAGE*6144];
};
+#define ZMQ_DAB_MESSAGE_HEAD_LENGTH (4 + NUM_FRAMES_PER_ZMQ_MESSAGE*2)
+
// -------------- ZeroMQ message queue ------------------
class DabOutputZMQ : public DabOutput
{