mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-31 19:42:26 +00:00
toc, tocsetter: drop use of GSlice
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3695>
This commit is contained in:
parent
25f7fa1efc
commit
7d1675e42e
2 changed files with 6 additions and 6 deletions
|
@ -140,7 +140,7 @@ gst_toc_new (GstTocScope scope)
|
|||
g_return_val_if_fail (scope == GST_TOC_SCOPE_GLOBAL ||
|
||||
scope == GST_TOC_SCOPE_CURRENT, NULL);
|
||||
|
||||
toc = g_slice_new0 (GstToc);
|
||||
toc = g_new0 (GstToc, 1);
|
||||
|
||||
gst_mini_object_init (GST_MINI_OBJECT_CAST (toc), 0, GST_TYPE_TOC,
|
||||
(GstMiniObjectCopyFunction) gst_toc_copy, NULL,
|
||||
|
@ -269,7 +269,7 @@ gst_toc_entry_new_internal (GstTocEntryType type, const gchar * uid)
|
|||
{
|
||||
GstTocEntry *entry;
|
||||
|
||||
entry = g_slice_new0 (GstTocEntry);
|
||||
entry = g_new0 (GstTocEntry, 1);
|
||||
|
||||
gst_mini_object_init (GST_MINI_OBJECT_CAST (entry), 0, GST_TYPE_TOC_ENTRY,
|
||||
(GstMiniObjectCopyFunction) gst_toc_entry_copy, NULL,
|
||||
|
@ -313,7 +313,7 @@ gst_toc_free (GstToc * toc)
|
|||
memset (toc, 0xff, sizeof (GstToc));
|
||||
#endif
|
||||
|
||||
g_slice_free (GstToc, toc);
|
||||
g_free (toc);
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -333,7 +333,7 @@ gst_toc_entry_free (GstTocEntry * entry)
|
|||
memset (entry, 0xff, sizeof (GstTocEntry));
|
||||
#endif
|
||||
|
||||
g_slice_free (GstTocEntry, entry);
|
||||
g_free (entry);
|
||||
}
|
||||
|
||||
static GstTocEntry *
|
||||
|
|
|
@ -78,7 +78,7 @@ gst_toc_data_free (gpointer p)
|
|||
|
||||
g_mutex_clear (&data->lock);
|
||||
|
||||
g_slice_free (GstTocData, data);
|
||||
g_free (data);
|
||||
}
|
||||
|
||||
static GstTocData *
|
||||
|
@ -94,7 +94,7 @@ gst_toc_setter_get_data (GstTocSetter * setter)
|
|||
g_mutex_lock (&create_mutex);
|
||||
data = g_object_get_qdata (G_OBJECT (setter), gst_toc_key);
|
||||
if (!data) {
|
||||
data = g_slice_new (GstTocData);
|
||||
data = g_new (GstTocData, 1);
|
||||
g_mutex_init (&data->lock);
|
||||
data->toc = NULL;
|
||||
g_object_set_qdata_full (G_OBJECT (setter), gst_toc_key, data,
|
||||
|
|
Loading…
Reference in a new issue