mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-11-26 05:21:00 +00:00
dav1ddec: Fix compilation after some API changes
This commit is contained in:
parent
cf46d9439b
commit
7c872bb92b
1 changed files with 6 additions and 2 deletions
|
@ -20,7 +20,6 @@ use once_cell::sync::Lazy;
|
|||
use std::i32;
|
||||
use std::sync::{Mutex, MutexGuard};
|
||||
|
||||
#[derive(Default)]
|
||||
struct State {
|
||||
decoder: dav1d::Decoder,
|
||||
input_state:
|
||||
|
@ -530,7 +529,12 @@ impl VideoDecoderImpl for Dav1dDec {
|
|||
{
|
||||
let mut state_guard = self.state.lock().unwrap();
|
||||
*state_guard = Some(State {
|
||||
decoder: dav1d::Decoder::new(),
|
||||
decoder: dav1d::Decoder::new().map_err(|err| {
|
||||
gst::error_msg!(
|
||||
gst::LibraryError::Init,
|
||||
["Failed to create decoder instance: {}", err]
|
||||
)
|
||||
})?,
|
||||
input_state: None,
|
||||
output_info: None,
|
||||
video_meta_supported: false,
|
||||
|
|
Loading…
Reference in a new issue