mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-09 00:45:56 +00:00
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/3922>
This commit is contained in:
parent
fcd983440e
commit
e2deebb103
1 changed files with 1 additions and 1 deletions
|
@ -1033,7 +1033,7 @@ gst_vtdec_push_frames_if_needed (GstVtdec * vtdec, gboolean drain,
|
|||
}
|
||||
}
|
||||
|
||||
if (drain)
|
||||
if (drain || flush)
|
||||
VTDecompressionSessionWaitForAsynchronousFrames (vtdec->session);
|
||||
|
||||
/* push a buffer if there are enough frames to guarantee that we push in PTS
|
||||
|
|
Loading…
Reference in a new issue