mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-09-03 10:43:55 +00:00
libs/gst/controller/gstinterpolationcontrolsource.c: Use GSlice for allocating the control points.
Original commit message from CVS: * libs/gst/controller/gstinterpolationcontrolsource.c: (gst_control_point_free), (gst_interpolation_control_source_set_internal): Use GSlice for allocating the control points.
This commit is contained in:
parent
9825935d6d
commit
e583f5a57b
2 changed files with 9 additions and 2 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
2008-04-02 Sebastian Dröge <slomo@circular-chaos.org>
|
||||||
|
|
||||||
|
* libs/gst/controller/gstinterpolationcontrolsource.c:
|
||||||
|
(gst_control_point_free),
|
||||||
|
(gst_interpolation_control_source_set_internal):
|
||||||
|
Use GSlice for allocating the control points.
|
||||||
|
|
||||||
2008-04-02 Wim Taymans <wim.taymans@collabora.co.uk>
|
2008-04-02 Wim Taymans <wim.taymans@collabora.co.uk>
|
||||||
|
|
||||||
* plugins/elements/gsttypefindelement.c:
|
* plugins/elements/gsttypefindelement.c:
|
||||||
|
|
|
@ -71,7 +71,7 @@ gst_control_point_free (GstControlPoint * cp)
|
||||||
g_return_if_fail (cp);
|
g_return_if_fail (cp);
|
||||||
|
|
||||||
g_value_unset (&cp->value);
|
g_value_unset (&cp->value);
|
||||||
g_free (cp);
|
g_slice_free (GstControlPoint, cp);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -432,7 +432,7 @@ gst_interpolation_control_source_set_internal (GstInterpolationControlSource *
|
||||||
g_value_copy (value, &cp->value);
|
g_value_copy (value, &cp->value);
|
||||||
} else {
|
} else {
|
||||||
/* create a new GstControlPoint */
|
/* create a new GstControlPoint */
|
||||||
cp = g_new0 (GstControlPoint, 1);
|
cp = g_slice_new0 (GstControlPoint);
|
||||||
cp->timestamp = timestamp;
|
cp->timestamp = timestamp;
|
||||||
g_value_init (&cp->value, self->priv->type);
|
g_value_init (&cp->value, self->priv->type);
|
||||||
g_value_copy (value, &cp->value);
|
g_value_copy (value, &cp->value);
|
||||||
|
|
Loading…
Reference in a new issue