mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 11:41:09 +00:00
typefindfunctions: drop use of GSlice
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3695>
This commit is contained in:
parent
0feb2770e6
commit
8d7eb2eb4f
3 changed files with 3 additions and 3 deletions
|
@ -35,5 +35,5 @@ sw_data_destroy (GstTypeFindData * sw_data)
|
|||
{
|
||||
if (G_LIKELY (sw_data->caps != NULL))
|
||||
gst_caps_unref (sw_data->caps);
|
||||
g_slice_free (GstTypeFindData, sw_data);
|
||||
g_free (sw_data);
|
||||
}
|
||||
|
|
|
@ -52,7 +52,7 @@ G_BEGIN_DECLS \
|
|||
static gboolean \
|
||||
G_PASTE(_private_type_find_riff_, typefind_name) (GstPlugin * plugin) \
|
||||
{ \
|
||||
GstTypeFindData *sw_data = g_slice_new (GstTypeFindData); \
|
||||
GstTypeFindData *sw_data = g_new (GstTypeFindData, 1); \
|
||||
sw_data->data = (gpointer)_data; \
|
||||
sw_data->size = 4; \
|
||||
sw_data->probability = GST_TYPE_FIND_MAXIMUM; \
|
||||
|
|
|
@ -53,7 +53,7 @@ G_BEGIN_DECLS \
|
|||
static gboolean \
|
||||
G_PASTE(_private_type_find_start_with_, typefind_name) (GstPlugin * plugin) \
|
||||
{ \
|
||||
GstTypeFindData *sw_data = g_slice_new (GstTypeFindData); \
|
||||
GstTypeFindData *sw_data = g_new (GstTypeFindData, 1); \
|
||||
sw_data->data = (const guint8 *)_data; \
|
||||
sw_data->size = _size; \
|
||||
sw_data->probability = _probability; \
|
||||
|
|
Loading…
Reference in a new issue