vtdec: Fix not waiting for async frames when flushing
authorPiotr Brzeziński <piotr@centricular.com>
Thu, 9 Feb 2023 17:51:30 +0000 (18:51 +0100)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Fri, 10 Feb 2023 20:29:15 +0000 (20:29 +0000)
commit8fd9c823602bb81daf59795b3d0768f558071c08
treeb6aa3d180b51a0497df9d3f41f73a82002e65a21
parentb87371d0cefa1b76e7aa51bafb83dcbb02829194
vtdec: Fix not waiting for async frames when flushing

This was causing incorrect output when seeking, especially
when used with a multithreaded source like `videotestsrc n-threads=2`.
It should now correctly wait for frames still being processed by VT
while vtdec is flushing.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3937>
subprojects/gst-plugins-bad/sys/applemedia/vtdec.c