Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'video/dav1d/src/dav1ddec/imp.rs')
-rw-r--r--video/dav1d/src/dav1ddec/imp.rs8
1 files changed, 2 insertions, 6 deletions
diff --git a/video/dav1d/src/dav1ddec/imp.rs b/video/dav1d/src/dav1ddec/imp.rs
index 66e430956..c9bad0a99 100644
--- a/video/dav1d/src/dav1ddec/imp.rs
+++ b/video/dav1d/src/dav1ddec/imp.rs
@@ -749,10 +749,8 @@ impl VideoDecoderImpl for Dav1dDec {
gst::info!(CAT, imp: self, "Draining");
{
- let mut state_guard = self.state.lock().unwrap();
+ let state_guard = self.state.lock().unwrap();
if state_guard.is_some() {
- let state = state_guard.as_mut().unwrap();
- self.flush_decoder(state);
let _state_guard = self.forward_pending_pictures(state_guard, true)?;
}
}
@@ -764,10 +762,8 @@ impl VideoDecoderImpl for Dav1dDec {
gst::info!(CAT, imp: self, "Finishing");
{
- let mut state_guard = self.state.lock().unwrap();
+ let state_guard = self.state.lock().unwrap();
if state_guard.is_some() {
- let state = state_guard.as_mut().unwrap();
- self.flush_decoder(state);
let _state_guard = self.forward_pending_pictures(state_guard, true)?;
}
}