mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-20 06:08:14 +00:00
meta: drop use of GSlice
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3695>
This commit is contained in:
parent
9dd70085f1
commit
755f214a52
2 changed files with 3 additions and 3 deletions
|
@ -153,7 +153,7 @@ gst_format_register (const gchar * nick, const gchar * description)
|
||||||
return query;
|
return query;
|
||||||
|
|
||||||
g_mutex_lock (&mutex);
|
g_mutex_lock (&mutex);
|
||||||
format = g_slice_new (GstFormatDefinition);
|
format = g_new (GstFormatDefinition, 1);
|
||||||
format->value = (GstFormat) _n_values;
|
format->value = (GstFormat) _n_values;
|
||||||
format->nick = g_strdup (nick);
|
format->nick = g_strdup (nick);
|
||||||
format->description = g_strdup (description);
|
format->description = g_strdup (description);
|
||||||
|
|
|
@ -78,7 +78,7 @@ typedef struct
|
||||||
static void
|
static void
|
||||||
free_info (gpointer data)
|
free_info (gpointer data)
|
||||||
{
|
{
|
||||||
g_slice_free (GstMetaInfoImpl, data);
|
g_free (data);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@ -394,7 +394,7 @@ gst_meta_register (GType api, const gchar * impl, gsize size,
|
||||||
if (type == G_TYPE_INVALID)
|
if (type == G_TYPE_INVALID)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
info = (GstMetaInfo *) g_slice_new (GstMetaInfoImpl);
|
info = (GstMetaInfo *) g_new (GstMetaInfoImpl, 1);
|
||||||
info->api = api;
|
info->api = api;
|
||||||
info->type = type;
|
info->type = type;
|
||||||
info->size = size;
|
info->size = size;
|
||||||
|
|
Loading…
Reference in a new issue