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>2020-06-08 11:08:27 +0300
committerSebastian Dröge <sebastian@centricular.com>2020-06-08 11:08:27 +0300
commit321f418518ba940b4590ee0b3a3fff25ca69b4fc (patch)
treea81e65913240a057473c0ce133fe11a55ea07523
parent737bd459e431ca3c15044104fe0dba5a9fca4ab6 (diff)
video: Handle Result returned by VideoMeta::add()
By simply unwrapping for now, which is still better silently having no VideoMeta.
-rw-r--r--video/closedcaption/src/cea608overlay.rs3
-rw-r--r--video/dav1d/src/dav1ddec.rs3
2 files changed, 4 insertions, 2 deletions
diff --git a/video/closedcaption/src/cea608overlay.rs b/video/closedcaption/src/cea608overlay.rs
index bff91fc56..dbb08bab3 100644
--- a/video/closedcaption/src/cea608overlay.rs
+++ b/video/closedcaption/src/cea608overlay.rs
@@ -186,7 +186,8 @@ impl Cea608Overlay {
gst_video::VideoFormat::Argb,
width as u32,
height as u32,
- );
+ )
+ .unwrap();
let buffer = buffer.into_mapped_buffer_writable().unwrap();
let buffer = {
let buffer_ptr = unsafe { buffer.get_buffer().as_ptr() };
diff --git a/video/dav1d/src/dav1ddec.rs b/video/dav1d/src/dav1ddec.rs
index cba893a0a..ef75829f7 100644
--- a/video/dav1d/src/dav1ddec.rs
+++ b/video/dav1d/src/dav1ddec.rs
@@ -235,7 +235,8 @@ impl Dav1dDec {
info.height(),
&offsets,
&strides[..],
- );
+ )
+ .unwrap();
}
let duration = pic.duration() as u64;