mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-02-02 22:22:24 +00:00
dav1ddec: Fix compilation after some API changes
This commit is contained in:
parent
730d0832ae
commit
c25966ef6e
1 changed files with 6 additions and 2 deletions
|
@ -20,7 +20,6 @@ use once_cell::sync::Lazy;
|
||||||
use std::i32;
|
use std::i32;
|
||||||
use std::sync::{Mutex, MutexGuard};
|
use std::sync::{Mutex, MutexGuard};
|
||||||
|
|
||||||
#[derive(Default)]
|
|
||||||
struct State {
|
struct State {
|
||||||
decoder: dav1d::Decoder,
|
decoder: dav1d::Decoder,
|
||||||
input_state:
|
input_state:
|
||||||
|
@ -530,7 +529,12 @@ impl VideoDecoderImpl for Dav1dDec {
|
||||||
{
|
{
|
||||||
let mut state_guard = self.state.lock().unwrap();
|
let mut state_guard = self.state.lock().unwrap();
|
||||||
*state_guard = Some(State {
|
*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,
|
input_state: None,
|
||||||
output_info: None,
|
output_info: None,
|
||||||
video_meta_supported: false,
|
video_meta_supported: false,
|
||||||
|
|
Loading…
Reference in a new issue