diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2020-06-08 11:08:27 +0300 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2020-06-08 11:08:27 +0300 |
commit | 321f418518ba940b4590ee0b3a3fff25ca69b4fc (patch) | |
tree | a81e65913240a057473c0ce133fe11a55ea07523 | |
parent | 737bd459e431ca3c15044104fe0dba5a9fca4ab6 (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.rs | 3 | ||||
-rw-r--r-- | video/dav1d/src/dav1ddec.rs | 3 |
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; |