v4l2: object: Fix condition check to emit error
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Thu, 15 Aug 2024 20:54:25 +0000 (16:54 -0400)
committerNicolas Dufresne <nicolas@ndufresne.ca>
Tue, 24 Sep 2024 20:19:12 +0000 (20:19 +0000)
commit11497507691422befc38487897ac09283bcff6ed
treebfd88f6b8180101b53be97c12a0f264e42cd07a2
parent625d1bf27f433d99f454e4fda805dc6c235fe645
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: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7563>
subprojects/gst-plugins-good/sys/v4l2/gstv4l2object.c