mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 02:31:03 +00:00
tests: Make sure not to test freed objects type
This commit is contained in:
parent
efb638efe8
commit
28775dad59
2 changed files with 3 additions and 2 deletions
|
@ -349,7 +349,6 @@ GST_START_TEST (test_clip_refcount_remove_child)
|
|||
fail_unless (ges_container_remove (GES_CONTAINER (clip),
|
||||
GES_TIMELINE_ELEMENT (effect)));
|
||||
fail_unless (called == TRUE);
|
||||
fail_if (G_IS_OBJECT (effect));
|
||||
|
||||
check_destroyed (G_OBJECT (track), NULL, NULL);
|
||||
check_destroyed (G_OBJECT (clip), NULL, NULL);
|
||||
|
|
|
@ -610,6 +610,8 @@ GST_START_TEST (test_single_layer_automatic_transition)
|
|||
g_list_free_full (objects, gst_object_unref);
|
||||
|
||||
GST_DEBUG ("Back to previous state");
|
||||
/* Make sure to keep 1 ref so we can check_destroyed afterward */
|
||||
gst_object_ref (transition);
|
||||
ges_timeline_element_set_duration (src, 1100 - 600);
|
||||
/* 600____src___1100
|
||||
* 500___________src1________1250
|
||||
|
@ -623,7 +625,7 @@ GST_START_TEST (test_single_layer_automatic_transition)
|
|||
assert_equals_uint64 (_DURATION (src2), 1000);
|
||||
|
||||
/* We check that the transition as actually been freed */
|
||||
fail_if (GES_IS_TRANSITION_CLIP (transition));
|
||||
check_destroyed (G_OBJECT (transition), NULL, NULL);
|
||||
|
||||
objects = ges_layer_get_clips (layer);
|
||||
assert_equals_int (g_list_length (objects), 3);
|
||||
|
|
Loading…
Reference in a new issue