examples: Make sure we don't end up using NULL values

This commit is contained in:
Edward Hervey 2011-03-15 14:05:07 +01:00
parent c8d77f2360
commit 027b454926

View file

@ -66,10 +66,12 @@ print_transition_data (GESTimelineObject * tr)
if (!tr)
return FALSE;
trackobjects = ges_timeline_object_get_track_objects (tr);
trackobj = GES_TRACK_OBJECT (trackobjects->data);
gnlobj = ges_track_object_get_gnlobject (trackobj);
if (!(trackobjects = ges_timeline_object_get_track_objects (tr)))
return FALSE;
if (!(trackobj = GES_TRACK_OBJECT (trackobjects->data)))
return FALSE;
if (!(gnlobj = ges_track_object_get_gnlobject (trackobj)))
return FALSE;
g_object_get (gnlobj, "start", &start, "duration", &duration,
"priority", &priority, "name", &name, NULL);