mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-27 18:50:48 +00:00
GESTimelineObject: Check for valid arguments
and minor indentation fix
This commit is contained in:
parent
eccad44289
commit
dab7501cdc
1 changed files with 5 additions and 2 deletions
|
@ -759,12 +759,15 @@ ges_timeline_object_find_track_object (GESTimelineObject * object,
|
|||
GList *tmp;
|
||||
GESTrackObject *otmp;
|
||||
|
||||
g_return_val_if_fail (GES_IS_TIMELINE_OBJECT (object), NULL);
|
||||
g_return_val_if_fail (GES_IS_TRACK (track), NULL);
|
||||
|
||||
for (tmp = object->priv->trackobjects; tmp; tmp = g_list_next (tmp)) {
|
||||
otmp = (GESTrackObject *) tmp->data;
|
||||
|
||||
if (ges_track_object_get_track (otmp) == track) {
|
||||
if ((type != G_TYPE_NONE) && !G_TYPE_CHECK_INSTANCE_TYPE (tmp->data,
|
||||
type))
|
||||
if ((type != G_TYPE_NONE) &&
|
||||
!G_TYPE_CHECK_INSTANCE_TYPE (tmp->data, type))
|
||||
continue;
|
||||
|
||||
ret = GES_TRACK_OBJECT (tmp->data);
|
||||
|
|
Loading…
Reference in a new issue