mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-07 07:58:51 +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;
|
GESTimelineLayer *layer;
|
||||||
GESTrack *track;
|
GESTrack *track;
|
||||||
GESCustomTimelineSource *source;
|
GESCustomTimelineSource *source;
|
||||||
|
GESTrackObject *trackobject;
|
||||||
|
|
||||||
ges_init ();
|
ges_init ();
|
||||||
/* This is the simplest scenario ever */
|
/* 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 */
|
/* Make sure the associated TrackObject is in the Track */
|
||||||
fail_unless (GES_TIMELINE_OBJECT (source)->trackobjects != NULL);
|
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");
|
GST_DEBUG ("Remove the TimelineObject from the layer");
|
||||||
/* Now remove the timelineobject */
|
/* Now remove the timelineobject */
|
||||||
g_object_ref (source);
|
g_object_ref (source);
|
||||||
|
|
Loading…
Reference in a new issue