mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-25 19:11:06 +00:00
video: Assert if caption data passed when adding caption metas is empty
It will cause a critical warning otherwise.
This commit is contained in:
parent
86e6d3afa4
commit
47cc80b1ef
1 changed files with 1 additions and 0 deletions
|
@ -210,6 +210,7 @@ impl VideoCaptionMeta {
|
|||
data: &[u8],
|
||||
) -> gst::MetaRefMut<'a, Self, gst::meta::Standalone> {
|
||||
skip_assert_initialized!();
|
||||
assert!(!data.is_empty());
|
||||
unsafe {
|
||||
let meta = gst_video_sys::gst_buffer_add_video_caption_meta(
|
||||
buffer.as_mut_ptr(),
|
||||
|
|
Loading…
Reference in a new issue