vtdec: Fix not waiting for async frames when flushing
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