aboutsummaryrefslogtreecommitdiffstats
path: root/src/Outputs.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Outputs.cpp')
-rw-r--r--src/Outputs.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Outputs.cpp b/src/Outputs.cpp
index 7046f61..5dd061c 100644
--- a/src/Outputs.cpp
+++ b/src/Outputs.cpp
@@ -124,8 +124,9 @@ bool ZMQ::write_frame(const uint8_t *buf, size_t len)
memcpy(ZMQ_FRAME_DATA(zmq_frame_header), buf, len);
- m_sock.send(m_framebuf.data(), ZMQ_FRAME_SIZE(zmq_frame_header),
- ZMQ_DONTWAIT);
+ m_sock.send(
+ zmq::const_buffer{m_framebuf.data(), ZMQ_FRAME_SIZE(zmq_frame_header)},
+ zmq::send_flags::dontwait);
}
catch (zmq::error_t& e) {
fprintf(stderr, "ZeroMQ send error !\n");