From 91e060dcbd0d5cc2f30fad56c16fca102ee830e0 Mon Sep 17 00:00:00 2001 From: "Joshua M. Doe" Date: Wed, 23 Oct 2019 15:06:16 -0400 Subject: [PATCH] pleorasrc: read GEV packet size after negotiation For debug and set to property --- sys/pleora/gstpleorasrc.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/sys/pleora/gstpleorasrc.cpp b/sys/pleora/gstpleorasrc.cpp index 0441cd9..cee076c 100644 --- a/sys/pleora/gstpleorasrc.cpp +++ b/sys/pleora/gstpleorasrc.cpp @@ -936,6 +936,17 @@ gst_pleorasrc_setup_stream (GstPleoraSrc * src) } } + PvGenInteger *packetParam = + src->device->GetParameters ()->GetInteger ("GevSCPSPacketSize"); + if (packetParam) { + gint64 val; + packetParam->GetValue (val); + GST_DEBUG_OBJECT (src, "Packet size is currently %d", val); + src->packet_size = (gint) val; + } else { + GST_WARNING_OBJECT (src, "Couldn't get current packet size"); + } + /* Configure device streaming destination */ pvRes = lDeviceGEV->SetStreamDestination (lStreamGEV->GetLocalIPAddress (),