idsueyesrc: if no config file specified load from EEPROM
This commit is contained in:
parent
ff999402bd
commit
b5c4671483
@ -462,6 +462,15 @@ gst_idsueyesrc_start (GstBaseSrc * bsrc)
|
|||||||
("Failed to load parameter file: %s", src->config_file), (NULL));
|
("Failed to load parameter file: %s", src->config_file), (NULL));
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
ret =
|
||||||
|
is_ParameterSet (src->hCam, IS_PARAMETERSET_CMD_LOAD_EEPROM, NULL,
|
||||||
|
NULL);
|
||||||
|
if (ret != IS_SUCCESS) {
|
||||||
|
GST_ELEMENT_ERROR (src, RESOURCE, OPEN_READ,
|
||||||
|
("Failed to load parameters from EEPROM"), (NULL));
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
gst_idsueyesrc_set_caps_from_camera (src);
|
gst_idsueyesrc_set_caps_from_camera (src);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user