kayasrc: issue warning when exposure time value is invalid

This commit is contained in:
Joshua M. Doe 2019-03-25 14:32:07 -04:00
parent 4e18c58e19
commit 85b4e242ca

View File

@ -269,8 +269,12 @@ static void
gst_kayasrc_set_exposure_time (GstKayaSrc * src)
{
if (src->cam_handle != INVALID_CAMHANDLE) {
KYFG_SetCameraValueFloat (src->cam_handle, "ExposureTime",
FGSTATUS ret = KYFG_SetCameraValueFloat (src->cam_handle, "ExposureTime",
src->exposure_time);
if (ret != FGSTATUS_OK) {
GST_WARNING_OBJECT (src, "Exposure time %.3f invalid",
src->exposure_time);
}
}
}