mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 23:06:49 +00:00
devicemonitor: drop use of GSlice
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3695>
This commit is contained in:
parent
15c1b9ad45
commit
2f88c68659
1 changed files with 3 additions and 3 deletions
|
@ -151,7 +151,7 @@ struct DeviceFilter
|
|||
static struct DeviceFilter *
|
||||
device_filter_copy (struct DeviceFilter *filter)
|
||||
{
|
||||
struct DeviceFilter *copy = g_slice_new0 (struct DeviceFilter);
|
||||
struct DeviceFilter *copy = g_new0 (struct DeviceFilter, 1);
|
||||
|
||||
copy->classesv = g_strdupv (filter->classesv);
|
||||
copy->caps = filter->caps ? gst_caps_ref (filter->caps) : NULL;
|
||||
|
@ -167,7 +167,7 @@ device_filter_free (struct DeviceFilter *filter)
|
|||
if (filter->caps)
|
||||
gst_caps_unref (filter->caps);
|
||||
|
||||
g_slice_free (struct DeviceFilter, filter);
|
||||
g_free (filter);
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -665,7 +665,7 @@ gst_device_monitor_add_filter_unlocked (GstDeviceMonitor * monitor,
|
|||
guint id = 0;
|
||||
gboolean matched = FALSE;
|
||||
|
||||
filter = g_slice_new0 (struct DeviceFilter);
|
||||
filter = g_new0 (struct DeviceFilter, 1);
|
||||
filter->id = monitor->priv->last_id++;
|
||||
if (caps)
|
||||
filter->caps = gst_caps_ref (caps);
|
||||
|
|
Loading…
Reference in a new issue