mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-02-18 13:55:22 +00:00
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:
parent
737bd459e4
commit
321f418518
2 changed files with 4 additions and 2 deletions
|
@ -186,7 +186,8 @@ impl Cea608Overlay {
|
||||||
gst_video::VideoFormat::Argb,
|
gst_video::VideoFormat::Argb,
|
||||||
width as u32,
|
width as u32,
|
||||||
height as u32,
|
height as u32,
|
||||||
);
|
)
|
||||||
|
.unwrap();
|
||||||
let buffer = buffer.into_mapped_buffer_writable().unwrap();
|
let buffer = buffer.into_mapped_buffer_writable().unwrap();
|
||||||
let buffer = {
|
let buffer = {
|
||||||
let buffer_ptr = unsafe { buffer.get_buffer().as_ptr() };
|
let buffer_ptr = unsafe { buffer.get_buffer().as_ptr() };
|
||||||
|
|
|
@ -235,7 +235,8 @@ impl Dav1dDec {
|
||||||
info.height(),
|
info.height(),
|
||||||
&offsets,
|
&offsets,
|
||||||
&strides[..],
|
&strides[..],
|
||||||
);
|
)
|
||||||
|
.unwrap();
|
||||||
}
|
}
|
||||||
|
|
||||||
let duration = pic.duration() as u64;
|
let duration = pic.duration() as u64;
|
||||||
|
|
Loading…
Reference in a new issue