v4l2codecs: Fix renegotiation
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Wed, 1 Dec 2021 14:51:57 +0000 (09:51 -0500)
committerNicolas Dufresne <nicolas.dufresne@collabora.com>
Thu, 2 Dec 2021 20:45:26 +0000 (15:45 -0500)
commita6eb1e77829f7e566f5805619385aced9d648c1b
treedd0e9f7132f8b2c5fe89a76e32ce39b3ec82e3b9
parente87791592ee99db2eacd50ed5f260bfcaa8e21c9
v4l2codecs: Fix renegotiation

If we hold the last reference to the allocator, leaving the device
streaming will cause an EBUSY error when trying to free the allocate
buffers.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1404>
subprojects/gst-plugins-bad/sys/v4l2codecs/gstv4l2codech264dec.c
subprojects/gst-plugins-bad/sys/v4l2codecs/gstv4l2codecmpeg2dec.c
subprojects/gst-plugins-bad/sys/v4l2codecs/gstv4l2codecvp8dec.c
subprojects/gst-plugins-bad/sys/v4l2codecs/gstv4l2codecvp9dec.c