From dc3f2c67214cdb28c92fec68675d5b388d3a90b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 26 Nov 2024 15:20:45 +0200 Subject: [PATCH] discoverer: Also copy missing element details when copying a GstDiscovererInfo Part-of: --- .../gst-libs/gst/pbutils/gstdiscoverer-types.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/subprojects/gst-plugins-base/gst-libs/gst/pbutils/gstdiscoverer-types.c b/subprojects/gst-plugins-base/gst-libs/gst/pbutils/gstdiscoverer-types.c index 55172388eb..46b6ee3b51 100644 --- a/subprojects/gst-plugins-base/gst-libs/gst/pbutils/gstdiscoverer-types.c +++ b/subprojects/gst-plugins-base/gst-libs/gst/pbutils/gstdiscoverer-types.c @@ -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; }