Skip to content

vtdec: Fix not waiting for async frames when flushing

Piotr Brzeziński requested to merge thewildtree/gstreamer:vtdec-flush-fix into main

Fixes #1417 (closed)

Fixes #1463 (closed)

As seen in issues linked above, output during flushing seeks was sometimes incorrect, especially when the source was something with multiple threads (videotestsrc n-threads=2 for example). The cause was in vtdec - it wasn't correctly waiting for frames still in-progress on VT's side while flushing.

Tested around with both test cases provided in linked issues, no failures to be seen anymore.

Edited by Nirbheek Chauhan

Merge request reports