diff --git a/libs/gst/controller/gstinterpolationcontrolsource.c b/libs/gst/controller/gstinterpolationcontrolsource.c
index 8f7d1d86f6fe1f67ee4cde96cb139ea5cf24965a..f320d7d0fc1422a228db78a65e4b1b6a82520101 100644 (file)
}
static void
-_append_control_point (GstControlPoint * cp, GList ** l)
+_append_control_point (GstControlPoint * cp, GQueue * res)
{
- *l = g_list_prepend (*l, cp);
+ g_queue_push_tail (res, cp);
}
/**
GList *
gst_interpolation_control_source_get_all (GstInterpolationControlSource * self)
{
- GList *res = NULL;
+ GQueue res = G_QUEUE_INIT;
g_return_val_if_fail (GST_IS_INTERPOLATION_CONTROL_SOURCE (self), NULL);
&res);
g_mutex_unlock (self->lock);
- return g_list_reverse (res);
+ return res.head;
}
/**