mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-01 13:08:49 +00:00
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:
parent
d553448b95
commit
dc3f2c6721
1 changed files with 8 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue