GstToc *toc;
toc = g_slice_new0 (GstToc);
- toc->tags = gst_tag_list_new ();
- toc->info = gst_structure_id_empty_new (gst_toc_fields[GST_TOC_INFONAME]);
+ toc->tags = gst_tag_list_new_empty ();
+ toc->info = gst_structure_new_id_empty (gst_toc_fields[GST_TOC_INFONAME]);
return toc;
}
entry = g_slice_new0 (GstTocEntry);
entry->uid = g_strdup (uid);
entry->type = type;
- entry->tags = gst_tag_list_new ();
- entry->info = gst_structure_id_empty_new (gst_toc_fields[GST_TOC_INFONAME]);
+ entry->tags = gst_tag_list_new_empty ();
+ entry->info = gst_structure_new_id_empty (gst_toc_fields[GST_TOC_INFONAME]);
return entry;
}
entry = g_slice_new0 (GstTocEntry);
entry->uid = g_strdup (uid);
entry->type = type;
- entry->tags = gst_tag_list_new ();
+ entry->tags = gst_tag_list_new_empty ();
if (pad != NULL && GST_IS_PAD (pad))
entry->pads = g_list_append (entry->pads, gst_object_ref (pad));
GstStructure *ret;
GValue val = { 0 };
- ret = gst_structure_id_empty_new (gst_toc_fields[GST_TOC_TOC]);
+ ret = gst_structure_new_id_empty (gst_toc_fields[GST_TOC_TOC]);
if (tags != NULL) {
g_value_init (&val, GST_TYPE_STRUCTURE);
GValue val = { 0 };
GstStructure *ret;
- ret = gst_structure_id_empty_new (gst_toc_fields[GST_TOC_ENTRY]);
+ ret = gst_structure_new_id_empty (gst_toc_fields[GST_TOC_ENTRY]);
gst_structure_id_set (ret, gst_toc_fields[GST_TOC_TYPE],
GST_TYPE_TOC_ENTRY_TYPE, type, NULL);
}
if (structure == NULL)
- structure = gst_structure_id_empty_new (gst_toc_fields[GST_TOC_TIMENAME]);
+ structure = gst_structure_new_id_empty (gst_toc_fields[GST_TOC_TIMENAME]);
gst_structure_id_set (structure, gst_toc_fields[GST_TOC_TIME_START],
G_TYPE_INT64, start, gst_toc_fields[GST_TOC_TIME_STOP], G_TYPE_INT64,