From 5c0ded4658eefdd0af55e57d43fc8e4fe5f94d1d Mon Sep 17 00:00:00 2001 From: Fredrik Landberg Date: Mon, 26 Jan 2015 16:21:43 +0100 Subject: Fixed missing header data in the zmq layer. The header information was missing due to using the wrong pointer in zmq_send. It also added 12 undefined bytes at the end of the payload. Because it is an optional header on the receiving end in the ODR-DabMux, I guess it goes fairly un-noticed, except possibly for the 12 extra bytes at the end. I don't use the ODR-DabMux at the moment, so I don't know if it causes any audible glitches. --- zmqoutput.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zmqoutput.c b/zmqoutput.c index 75a3543..f880ba3 100644 --- a/zmqoutput.c +++ b/zmqoutput.c @@ -67,7 +67,7 @@ int zmqoutput_write_byte(Bit_stream_struc *bs, unsigned char data) memcpy(txframe, zmqbuf, zmqbuf_len); - int send_error = zmq_send(bs->zmq_sock, txframe, frame_length, + int send_error = zmq_send(bs->zmq_sock, header, frame_length, ZMQ_DONTWAIT); if (send_error < 0) { -- cgit v1.2.3