gst_tag_list_free (info->tags);
if (info->toc)
- gst_toc_free (info->toc);
+ gst_toc_unref (info->toc);
if (info->misc)
gst_structure_free (info->misc);
ret->tags = gst_tag_list_copy (info->tags);
if (info->toc)
- ret->toc = gst_toc_copy (info->toc);
+ ret->toc = gst_toc_ref (info->toc);
if (info->misc)
ret->misc = gst_structure_copy (info->misc);
gst_tag_list_free (info->tags);
if (info->toc)
- gst_toc_free (info->toc);
+ gst_toc_unref (info->toc);
}
static GstDiscovererInfo *
ret->tags = gst_tag_list_copy (ptr->tags);
if (ptr->toc)
- ret->toc = gst_toc_copy (ptr->toc);
+ ret->toc = gst_toc_ref (ptr->toc);
g_hash_table_destroy (stream_map);
return ret;
gst_tag_list_free (ps->tags);
}
if (ps->toc) {
- gst_toc_free (ps->toc);
+ gst_toc_unref (ps->toc);
}
g_slice_free (PrivateStream, ps);