mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-29 05:01:23 +00:00
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>
This commit is contained in:
parent
625d1bf27f
commit
1149750769
1 changed files with 1 additions and 1 deletions
|
@ -1305,7 +1305,7 @@ failed:
|
|||
{
|
||||
g_free (format);
|
||||
|
||||
if (v4l2object->element)
|
||||
if (!v4l2object->element)
|
||||
return FALSE;
|
||||
|
||||
GST_ELEMENT_ERROR (v4l2object->element, RESOURCE, SETTINGS,
|
||||
|
|
Loading…
Reference in a new issue