From d35f348af3fbec56df52e86bc008912c81e1c3c2 Mon Sep 17 00:00:00 2001 From: Nicolas Dufresne Date: Thu, 15 Aug 2024 16:54:25 -0400 Subject: [PATCH] v4l2: object: Fix condition check to emit error The check was reversed, so we could only emit a pipeline error if there was no element associated with the object. Part-of: --- subprojects/gst-plugins-good/sys/v4l2/gstv4l2object.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subprojects/gst-plugins-good/sys/v4l2/gstv4l2object.c b/subprojects/gst-plugins-good/sys/v4l2/gstv4l2object.c index e9932e3113..9b9db41652 100644 --- a/subprojects/gst-plugins-good/sys/v4l2/gstv4l2object.c +++ b/subprojects/gst-plugins-good/sys/v4l2/gstv4l2object.c @@ -1305,7 +1305,7 @@ failed: { g_free (format); - if (v4l2object->element) + if (!v4l2object->element) return FALSE; GST_ELEMENT_ERROR (v4l2object->element, RESOURCE, SETTINGS,