video: Handle Result returned by VideoMeta::add()

By simply unwrapping for now, which is still better silently having no
VideoMeta.
This commit is contained in:
Sebastian Dröge 2020-06-08 11:08:27 +03:00
parent 737bd459e4
commit 321f418518
2 changed files with 4 additions and 2 deletions

View file

@ -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() };

View file

@ -235,7 +235,8 @@ impl Dav1dDec {
info.height(),
&offsets,
&strides[..],
);
)
.unwrap();
}
let duration = pic.duration() as u64;