pleorasrc: lock streaming related parameters during acquisition
This commit is contained in:
parent
91e060dcbd
commit
79a5e67de0
@ -1270,6 +1270,9 @@ gst_pleorasrc_start (GstBaseSrc * bsrc)
|
|||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GST_DEBUG_OBJECT (src, "Lock streaming-related parameters");
|
||||||
|
lDeviceParams->SetIntegerValue ("TLParamsLocked", 1);
|
||||||
|
|
||||||
pvRes = start_cmd->Execute ();
|
pvRes = start_cmd->Execute ();
|
||||||
if (!pvRes.IsOK ()) {
|
if (!pvRes.IsOK ()) {
|
||||||
GST_ELEMENT_ERROR (src, RESOURCE, FAILED,
|
GST_ELEMENT_ERROR (src, RESOURCE, FAILED,
|
||||||
@ -1319,6 +1322,10 @@ gst_pleorasrc_stop (GstBaseSrc * bsrc)
|
|||||||
PvGenCommand *lStop =
|
PvGenCommand *lStop =
|
||||||
dynamic_cast < PvGenCommand * >(lDeviceParams->Get ("AcquisitionStop"));
|
dynamic_cast < PvGenCommand * >(lDeviceParams->Get ("AcquisitionStop"));
|
||||||
lStop->Execute ();
|
lStop->Execute ();
|
||||||
|
|
||||||
|
GST_DEBUG_OBJECT (src, "Unlocking streaming-related parameters");
|
||||||
|
lDeviceParams->SetIntegerValue ("TLParamsLocked", 0);
|
||||||
|
|
||||||
src->device->StreamDisable ();
|
src->device->StreamDisable ();
|
||||||
}
|
}
|
||||||
src->pipeline->Stop ();
|
src->pipeline->Stop ();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user