From 6f84e34a1fcfc81aed5e0c470d21478686a94c6d Mon Sep 17 00:00:00 2001 From: Thor Tomasarson Date: Tue, 3 Aug 2021 15:46:18 +0000 Subject: [PATCH] pylonsrc: reduce repeated parameter writes --- sys/pylon/gstpylonsrc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/pylon/gstpylonsrc.c b/sys/pylon/gstpylonsrc.c index 5d53442..11ea266 100644 --- a/sys/pylon/gstpylonsrc.c +++ b/sys/pylon/gstpylonsrc.c @@ -2174,7 +2174,8 @@ error: static gboolean 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 if (feature_supported (src, "ImageFilename")) { GENAPIC_RESULT res;