mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-12-23 02:26:35 +00:00
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>
This commit is contained in:
parent
c5a625ae28
commit
f62d07633d
1 changed files with 0 additions and 8 deletions
|
@ -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(
|
fn pending_picture(
|
||||||
&self,
|
&self,
|
||||||
state_guard: &mut MutexGuard<Option<State>>,
|
state_guard: &mut MutexGuard<Option<State>>,
|
||||||
|
@ -738,7 +731,6 @@ impl VideoDecoderImpl for Dav1dDec {
|
||||||
if state_guard.is_some() {
|
if state_guard.is_some() {
|
||||||
let state = state_guard.as_mut().unwrap();
|
let state = state_guard.as_mut().unwrap();
|
||||||
self.flush_decoder(state);
|
self.flush_decoder(state);
|
||||||
self.drop_decoded_pictures(&mut state_guard);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue