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:
authorSebastian Dröge <sebastian@centricular.com>2022-02-03 16:51:46 +0300
committerSebastian Dröge <sebastian@centricular.com>2022-02-03 16:51:46 +0300
commit7c872bb92bc4949c47cee1aabf24f46a364bf081 (patch)
treebeaaddc1e3d22ca0de3363631ef5dcf133098fb4 /video/dav1d
parentcf46d9439b13cd61a17a09b906412ae96f2d1592 (diff)
dav1ddec: Fix compilation after some API changes
Diffstat (limited to 'video/dav1d')
-rw-r--r--video/dav1d/src/dav1ddec/imp.rs8
1 files changed, 6 insertions, 2 deletions
diff --git a/video/dav1d/src/dav1ddec/imp.rs b/video/dav1d/src/dav1ddec/imp.rs
index bf6a94a6c..056bc5a3a 100644
--- a/video/dav1d/src/dav1ddec/imp.rs
+++ b/video/dav1d/src/dav1ddec/imp.rs
@@ -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,