diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2023-01-22 01:28:15 +0300 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2023-01-22 01:28:15 +0300 |
commit | f62d07633d3ad074363a93d8288b89c14cffa3ba (patch) | |
tree | ef342d76930e03849fcb7b6b2caaa3bcbb628e50 /video | |
parent | c5a625ae28e50d8b8695c97afb3077042bbe8619 (diff) |
dav1d: Remove unnecessary frame dropping loop
After flushing there are no frames left anymore that could be dropped.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1055>
Diffstat (limited to 'video')
-rw-r--r-- | video/dav1d/src/dav1ddec/imp.rs | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/video/dav1d/src/dav1ddec/imp.rs b/video/dav1d/src/dav1ddec/imp.rs index c9bad0a99..1a057638f 100644 --- a/video/dav1d/src/dav1ddec/imp.rs +++ b/video/dav1d/src/dav1ddec/imp.rs @@ -379,13 +379,6 @@ impl Dav1dDec { } } - fn drop_decoded_pictures(&self, state_guard: &mut MutexGuard<Option<State>>) { - while let Ok(Some(pic)) = self.pending_picture(state_guard) { - gst::debug!(CAT, imp: self, "Dropping picture {}", pic.offset()); - drop(pic); - } - } - fn pending_picture( &self, state_guard: &mut MutexGuard<Option<State>>, @@ -738,7 +731,6 @@ impl VideoDecoderImpl for Dav1dDec { if state_guard.is_some() { let state = state_guard.as_mut().unwrap(); self.flush_decoder(state); - self.drop_decoded_pictures(&mut state_guard); } } |