pbutils: update discoverer for GstToc API changes
This commit is contained in:
parent
a821d428bb
commit
a9d12f7bae
@ -68,7 +68,7 @@ gst_discoverer_stream_info_finalize (GObject * object)
|
|||||||
gst_tag_list_free (info->tags);
|
gst_tag_list_free (info->tags);
|
||||||
|
|
||||||
if (info->toc)
|
if (info->toc)
|
||||||
gst_toc_free (info->toc);
|
gst_toc_unref (info->toc);
|
||||||
|
|
||||||
if (info->misc)
|
if (info->misc)
|
||||||
gst_structure_free (info->misc);
|
gst_structure_free (info->misc);
|
||||||
@ -130,7 +130,7 @@ gst_discoverer_info_copy_int (GstDiscovererStreamInfo * info,
|
|||||||
ret->tags = gst_tag_list_copy (info->tags);
|
ret->tags = gst_tag_list_copy (info->tags);
|
||||||
|
|
||||||
if (info->toc)
|
if (info->toc)
|
||||||
ret->toc = gst_toc_copy (info->toc);
|
ret->toc = gst_toc_ref (info->toc);
|
||||||
|
|
||||||
if (info->misc)
|
if (info->misc)
|
||||||
ret->misc = gst_structure_copy (info->misc);
|
ret->misc = gst_structure_copy (info->misc);
|
||||||
@ -369,7 +369,7 @@ gst_discoverer_info_finalize (GObject * object)
|
|||||||
gst_tag_list_free (info->tags);
|
gst_tag_list_free (info->tags);
|
||||||
|
|
||||||
if (info->toc)
|
if (info->toc)
|
||||||
gst_toc_free (info->toc);
|
gst_toc_unref (info->toc);
|
||||||
}
|
}
|
||||||
|
|
||||||
static GstDiscovererInfo *
|
static GstDiscovererInfo *
|
||||||
@ -422,7 +422,7 @@ gst_discoverer_info_copy (GstDiscovererInfo * ptr)
|
|||||||
ret->tags = gst_tag_list_copy (ptr->tags);
|
ret->tags = gst_tag_list_copy (ptr->tags);
|
||||||
|
|
||||||
if (ptr->toc)
|
if (ptr->toc)
|
||||||
ret->toc = gst_toc_copy (ptr->toc);
|
ret->toc = gst_toc_ref (ptr->toc);
|
||||||
|
|
||||||
g_hash_table_destroy (stream_map);
|
g_hash_table_destroy (stream_map);
|
||||||
return ret;
|
return ret;
|
||||||
|
@ -634,7 +634,7 @@ uridecodebin_pad_removed_cb (GstElement * uridecodebin, GstPad * pad,
|
|||||||
gst_tag_list_free (ps->tags);
|
gst_tag_list_free (ps->tags);
|
||||||
}
|
}
|
||||||
if (ps->toc) {
|
if (ps->toc) {
|
||||||
gst_toc_free (ps->toc);
|
gst_toc_unref (ps->toc);
|
||||||
}
|
}
|
||||||
|
|
||||||
g_slice_free (PrivateStream, ps);
|
g_slice_free (PrivateStream, ps);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user