From 95104ac84409228b447a45124c8865fe9d0a1461 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Thu, 18 Jul 2024 13:04:42 +0300 Subject: [PATCH] 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: --- gstreamer/src/meta.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gstreamer/src/meta.rs b/gstreamer/src/meta.rs index dc5d45cd4..cc7726837 100644 --- a/gstreamer/src/meta.rs +++ b/gstreamer/src/meta.rs @@ -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,