Fix pointer check in UdpRecvModule

This commit is contained in:
2020-04-15 14:36:22 +02:00
parent 87db231c5d
commit 9259553f95
+3 -1
View File
@@ -95,7 +95,9 @@ void UdpRecvModule::receive_thread(
auto* current_metadata = metadata.get();
if (packet_buffer.framenum != current_metadata->frame_index) {
if (current_metadata == nullptr ||
packet_buffer.framenum != current_metadata->frame_index) {
if (frame_buffer != nullptr) {
ring_buffer_.commit(metadata);
}