pleorasrc: read GEV packet size after negotiation

For debug and set to property
This commit is contained in:
Joshua M. Doe 2019-10-23 15:06:16 -04:00
parent 6084edb3f7
commit 91e060dcbd

View File

@ -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 */ /* Configure device streaming destination */
pvRes = pvRes =
lDeviceGEV->SetStreamDestination (lStreamGEV->GetLocalIPAddress (), lDeviceGEV->SetStreamDestination (lStreamGEV->GetLocalIPAddress (),