mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-27 18:50:48 +00:00
tests: Check refcount of created trackobjects
This commit is contained in:
parent
83cc796cc9
commit
369d1d8cd8
1 changed files with 5 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue