From b5c4671483c2d694cee62d5164acc648d01591cb Mon Sep 17 00:00:00 2001 From: "Joshua M. Doe" Date: Tue, 12 Sep 2017 11:08:11 -0400 Subject: [PATCH] idsueyesrc: if no config file specified load from EEPROM --- sys/idsueye/gstidsueyesrc.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/sys/idsueye/gstidsueyesrc.c b/sys/idsueye/gstidsueyesrc.c index 55661b0..520c04d 100644 --- a/sys/idsueye/gstidsueyesrc.c +++ b/sys/idsueye/gstidsueyesrc.c @@ -462,6 +462,15 @@ gst_idsueyesrc_start (GstBaseSrc * bsrc) ("Failed to load parameter file: %s", src->config_file), (NULL)); 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);