gstreamer: meta: Pass an empty tag array instead of NULL to gst_meta_register_custom()

NULL gives a critical warning but an empty, NULL-terminated array gives
the desired result.

Fixes https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/issues/516

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1484>
This commit is contained in:
Sebastian Dröge 2024-07-18 13:04:42 +03:00 committed by Backport Bot
parent 61c6e8177b
commit 95104ac844

View file

@ -939,7 +939,7 @@ impl CustomMeta {
unsafe {
ffi::gst_meta_register_custom(
name.to_glib_none().0,
ptr::null_mut(),
[ptr::null()].as_mut_ptr(),
None,
ptr::null_mut(),
None,