v4l2: videodec: Don't wait for src_ch if active
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Mon, 26 Jun 2023 21:10:33 +0000 (17:10 -0400)
committerTim-Philipp Müller <tim@centricular.com>
Sun, 9 Jul 2023 16:50:30 +0000 (17:50 +0100)
commite4206bbae84cb8352fff89c5f9cbc1df276961d0
treecdab06959847b6ae93f490cd364a8450dc73cf48
parent62ada196db06a135788cf896d92b347f940e6020
v4l2: videodec: Don't wait for src_ch if active

If the capture pool is already active, like when handling gaps at the
start of a stream, do not setup the decoder to wait for src_ch event.
Otherwise the decoder will endup waiting for that at the wrong moment
and exit the decoding thread unexpectedly.

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