aboutsummaryrefslogtreecommitdiffstats
path: root/src/Outputs.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2021-01-15 08:42:31 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2021-01-15 08:42:31 +0100
commit9ab42698be23d6355c7ce5dc09d8e67a97461bf9 (patch)
tree7d5461645b73eff970e43e22d582a86c1cbc0929 /src/Outputs.cpp
parentc7869f8a51d772ad0654df19741ead8bfe50acfe (diff)
downloadODR-AudioEnc-9ab42698be23d6355c7ce5dc09d8e67a97461bf9.tar.gz
ODR-AudioEnc-9ab42698be23d6355c7ce5dc09d8e67a97461bf9.tar.bz2
ODR-AudioEnc-9ab42698be23d6355c7ce5dc09d8e67a97461bf9.zip
Suppress warning due to zmq.hpp update
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 713ac1a..ad05f93 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");