gopbuffer: Push GOPs in order of time on EOS

GOPs are internally ordered with latest GOP first so they have to be
pushed in reverse order on EOS.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/2335>
This commit is contained in:
Jochen Henneberg 2025-07-02 09:48:22 +02:00
parent 388b442891
commit 594a0152ba

View file

@ -379,7 +379,7 @@ impl Stream {
}
fn drain_all(&mut self) -> impl Iterator<Item = Gop> + '_ {
self.queued_gops.drain(..)
self.queued_gops.drain(..).rev()
}
fn flush(&mut self) {