v4l2: videodec: Ensure object is inactive on failure
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Fri, 14 Apr 2023 13:51:39 +0000 (09:51 -0400)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Tue, 2 May 2023 14:42:43 +0000 (14:42 +0000)
commit20ddda25383cabbd565442f9844b741248893dc3
tree934438cb49cfc4839685cd8ba5a1defdd96505e2
parent29b5a3d568618b98e92bf61542f6e1279accd84c
v4l2: videodec: Ensure object is inactive on failure

Sprinkle stop() calls in error case to guaranty that the capture object
is inactive on failure. Not doing so could allow some code to be called
in unexpected (and possibly undefined) conditions.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4525>
subprojects/gst-plugins-good/sys/v4l2/gstv4l2videodec.c