Rename size attribute of StreamModuleFrame

This commit is contained in:
2020-05-19 12:28:29 +02:00
parent 3b08ceed4b
commit 03e2e6fda4
4 changed files with 28 additions and 26 deletions
+2 -2
View File
@@ -131,10 +131,10 @@ void WriterZmqReceiver::get_next_image(
auto n_bytes_image = zmq_recv(
sockets_[i_module],
(image_buffer + image_buffer_offset),
frame_metadata.frame_size,
frame_metadata.data_n_bytes,
0);
if (n_bytes_image != frame_metadata.frame_size) {
if (n_bytes_image != frame_metadata.data_n_bytes) {
throw runtime_error("Wrong number of data bytes.");
}