diff --git a/video/dav1d/src/dav1ddec/imp.rs b/video/dav1d/src/dav1ddec/imp.rs index c9bad0a9..1a057638 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>) { - 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>, @@ -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); } }