kaysrc: don't try and set zero exposure time

Mostly to get rid of annoying warnings
This commit is contained in:
Joshua M. Doe 2021-04-13 13:36:04 -04:00
parent 402841ec91
commit b0dad8b7b2

View File

@ -301,7 +301,7 @@ gst_kayasrc_get_exposure_time (GstKayaSrc * src)
static void
gst_kayasrc_set_exposure_time (GstKayaSrc * src)
{
if (src->cam_handle != INVALID_CAMHANDLE) {
if (src->cam_handle != INVALID_CAMHANDLE && src->exposure_time > 0) {
FGSTATUS ret = KYFG_SetCameraValueFloat (src->cam_handle, "ExposureTime",
src->exposure_time);
if (ret != FGSTATUS_OK) {