discoverer: fix build with older glib versions

Follow-up to !7969

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7988>
This commit is contained in:
Tim-Philipp Müller 2024-11-27 19:11:23 +00:00 committed by GStreamer Marge Bot
parent 835e232e8c
commit 13f2b7dd74

View file

@ -1528,7 +1528,7 @@ discoverer_collect (GstDiscoverer * dc)
_ensure_info_tags (dc);
#if !GLIB_CHECK_VERSION(2,74,0)
/* Make sure the missing element details are NULL-terminated */
g_ptr_array_add (info->missing_elements_details, NULL);
g_ptr_array_add (dc->priv->current_info->missing_elements_details, NULL);
#endif
serialize_info_if_required (dc, dc->priv->current_info);
if (dc->priv->async)