discoverer: Also copy missing element details when copying a GstDiscovererInfo

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7969>
This commit is contained in:
Sebastian Dröge 2024-11-26 15:20:45 +02:00 committed by GStreamer Marge Bot
parent d553448b95
commit dc3f2c6721

View file

@ -455,6 +455,14 @@ gst_discoverer_info_copy (GstDiscovererInfo * ptr)
if (ptr->toc)
ret->toc = gst_toc_ref (ptr->toc);
if (ptr->missing_elements_details->len > 0) {
guint i;
for (i = 0; i < ptr->missing_elements_details->len; i++)
g_ptr_array_add (ret->missing_elements_details,
g_strdup (ptr->missing_elements_details->pdata[i]));
}
g_hash_table_destroy (stream_map);
return ret;
}