mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-13 21:01:14 +00:00
trackelement: Sort paramspec by name in list_children_properties
https://bugzilla.gnome.org/show_bug.cgi?id=720023
This commit is contained in:
parent
a3e87f262b
commit
edd95cf57d
1 changed files with 12 additions and 1 deletions
|
@ -282,6 +282,12 @@ ges_track_element_init (GESTrackElement * self)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static gint
|
||||||
|
compare_gparamspec (GParamSpec ** a, GParamSpec ** b, gpointer udata)
|
||||||
|
{
|
||||||
|
return g_strcmp0 ((*a)->name, (*b)->name);
|
||||||
|
}
|
||||||
|
|
||||||
static gfloat
|
static gfloat
|
||||||
interpolate_values_for_position (GstTimedValue * first_value,
|
interpolate_values_for_position (GstTimedValue * first_value,
|
||||||
GstTimedValue * second_value, guint64 position)
|
GstTimedValue * second_value, guint64 position)
|
||||||
|
@ -1253,13 +1259,18 @@ GParamSpec **
|
||||||
ges_track_element_list_children_properties (GESTrackElement * object,
|
ges_track_element_list_children_properties (GESTrackElement * object,
|
||||||
guint * n_properties)
|
guint * n_properties)
|
||||||
{
|
{
|
||||||
|
GParamSpec **ret;
|
||||||
GESTrackElementClass *class;
|
GESTrackElementClass *class;
|
||||||
|
|
||||||
g_return_val_if_fail (GES_IS_TRACK_ELEMENT (object), NULL);
|
g_return_val_if_fail (GES_IS_TRACK_ELEMENT (object), NULL);
|
||||||
|
|
||||||
class = GES_TRACK_ELEMENT_GET_CLASS (object);
|
class = GES_TRACK_ELEMENT_GET_CLASS (object);
|
||||||
|
|
||||||
return class->list_children_properties (object, n_properties);
|
ret = class->list_children_properties (object, n_properties);
|
||||||
|
g_qsort_with_data (ret, *n_properties, sizeof (GParamSpec *),
|
||||||
|
(GCompareDataFunc) compare_gparamspec, NULL);
|
||||||
|
|
||||||
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue