pylonsrc: reduce repeated parameter writes

This commit is contained in:
Thor Tomasarson 2021-08-03 15:46:18 +00:00 committed by joshdoe
parent c64f9dda31
commit 6f84e34a1f

View File

@ -2174,7 +2174,8 @@ error:
static gboolean static gboolean
gst_pylonsrc_set_test_image_source (GstPylonSrc * src) gst_pylonsrc_set_test_image_source (GstPylonSrc * src)
{ {
if (!(is_prop_default (src, PROP_TESTIMAGESOURCE))) { if (is_prop_implicit (src, PROP_TESTIMAGESOURCE) &&
!(is_prop_default (src, PROP_TESTIMAGESOURCE))) {
// Set whether test image will be shown // Set whether test image will be shown
if (feature_supported (src, "ImageFilename")) { if (feature_supported (src, "ImageFilename")) {
GENAPIC_RESULT res; GENAPIC_RESULT res;