pylonsrc: the testimagesource should only be set if explicitly configured

This commit is contained in:
Thor Tomasarson 2021-08-03 13:28:26 +00:00 committed by joshdoe
parent ee440aa927
commit c64f9dda31

View File

@ -2174,7 +2174,7 @@ error:
static gboolean static gboolean
gst_pylonsrc_set_test_image_source (GstPylonSrc * src) gst_pylonsrc_set_test_image_source (GstPylonSrc * src)
{ {
if (is_prop_implicit (src, PROP_TESTIMAGESOURCE)) { if (!(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;