tests: Check refcount of created trackobjects

This commit is contained in:
Edward Hervey 2010-03-12 19:05:36 +01:00
parent 83cc796cc9
commit 369d1d8cd8

View file

@ -48,6 +48,7 @@ GST_START_TEST (test_ges_scenario)
GESTimelineLayer *layer;
GESTrack *track;
GESCustomTimelineSource *source;
GESTrackObject *trackobject;
ges_init ();
/* This is the simplest scenario ever */
@ -93,6 +94,10 @@ GST_START_TEST (test_ges_scenario)
/* Make sure the associated TrackObject is in the Track */
fail_unless (GES_TIMELINE_OBJECT (source)->trackobjects != NULL);
trackobject =
GES_TRACK_OBJECT ((GES_TIMELINE_OBJECT (source)->trackobjects)->data);
ASSERT_OBJECT_REFCOUNT (trackobject, "trackobject", 1);
GST_DEBUG ("Remove the TimelineObject from the layer");
/* Now remove the timelineobject */
g_object_ref (source);