diff options
author | François Laignel <fengalin@free.fr> | 2021-04-20 15:58:11 +0300 |
---|---|---|
committer | François Laignel <fengalin@free.fr> | 2021-04-20 19:19:58 +0300 |
commit | 67c5871957a583c5817156891cb6586a54e6d5f4 (patch) | |
tree | 3d9aff3447876b8d17df180b8a0e9b9594f90b5d /video/dav1d | |
parent | 27bc5c89cad7dfec9cc12c6c87beca76a4a0b139 (diff) |
fix-getters-calls 0.3.0 pass
Diffstat (limited to 'video/dav1d')
-rw-r--r-- | video/dav1d/build.rs | 2 | ||||
-rw-r--r-- | video/dav1d/src/dav1ddec/imp.rs | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/video/dav1d/build.rs b/video/dav1d/build.rs index 17be1215e..cda12e57e 100644 --- a/video/dav1d/build.rs +++ b/video/dav1d/build.rs @@ -1,3 +1,3 @@ fn main() { - gst_plugin_version_helper::get_info() + gst_plugin_version_helper::info() } diff --git a/video/dav1d/src/dav1ddec/imp.rs b/video/dav1d/src/dav1ddec/imp.rs index cfd609397..a08721bd3 100644 --- a/video/dav1d/src/dav1ddec/imp.rs +++ b/video/dav1d/src/dav1ddec/imp.rs @@ -265,7 +265,7 @@ impl Dav1dDec { .output_state() .expect("Output state not set. Shouldn't happen!"); let offset = pic.offset() as i32; - if let Some(mut frame) = element.get_frame(offset) { + if let Some(mut frame) = element.frame(offset) { let output_buffer = self.decoded_picture_as_buffer(&pic, output_state)?; frame.set_output_buffer(output_buffer); element.finish_frame(frame)?; @@ -278,7 +278,7 @@ impl Dav1dDec { fn drop_decoded_pictures(&self) { let mut decoder = self.decoder.lock().unwrap(); - while let Ok(pic) = decoder.get_picture() { + while let Ok(pic) = decoder.picture() { gst_debug!(CAT, "Dropping picture"); drop(pic); } @@ -289,7 +289,7 @@ impl Dav1dDec { ) -> Result<Vec<(dav1d::Picture, gst_video::VideoFormat)>, gst::FlowError> { let mut decoder = self.decoder.lock().unwrap(); let mut pictures = vec![]; - while let Ok(pic) = decoder.get_picture() { + while let Ok(pic) = decoder.picture() { let format = self.gst_video_format_from_dav1d_picture(&pic); if format == gst_video::VideoFormat::Unknown { return Err(gst::FlowError::NotNegotiated); |