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/1485>
This commit is contained in:
Sebastian Dröge 2024-07-18 13:04:42 +03:00 committed by Backport Bot
parent 1ff88815df
commit ce6741a157

View file

@ -943,7 +943,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,