From: Mathieu Duponchelle Date: Tue, 8 Jul 2014 20:59:11 +0000 (+0200) Subject: tests:composition: Fix some refcounts X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=123a9400013d982283276b52202125f8c3f505e8;p=platform%2Fupstream%2Fgst-editing-services.git tests:composition: Fix some refcounts Co-Authored by: Thibault Saunier --- diff --git a/tests/check/gnl/seek.c b/tests/check/gnl/seek.c index aae0206..35ee307 100644 --- a/tests/check/gnl/seek.c +++ b/tests/check/gnl/seek.c @@ -188,7 +188,7 @@ test_simplest_full (void) commit_and_wait (comp, &ret); check_start_stop_duration (comp, 0, 1 * GST_SECOND, 1 * GST_SECOND); - ASSERT_OBJECT_REFCOUNT (source1, "source1", 2); + ASSERT_OBJECT_REFCOUNT (source1, "source1", 1); /* Expected segments */ segments = g_list_append (segments, @@ -276,8 +276,8 @@ test_one_after_other_full (void) 1 * GST_SECOND); check_start_stop_duration (comp, 0, 2 * GST_SECOND, 2 * GST_SECOND); - ASSERT_OBJECT_REFCOUNT (source1, "source1", 2); - ASSERT_OBJECT_REFCOUNT (source2, "source2", 2); + ASSERT_OBJECT_REFCOUNT (source1, "source1", 1); + ASSERT_OBJECT_REFCOUNT (source2, "source2", 1); /* Expected segments */ @@ -433,8 +433,8 @@ test_one_bin_after_other_full (void) 1 * GST_SECOND); check_start_stop_duration (comp, 0, 2 * GST_SECOND, 2 * GST_SECOND); - ASSERT_OBJECT_REFCOUNT (source1, "source1", 2); - ASSERT_OBJECT_REFCOUNT (source2, "source2", 2); + ASSERT_OBJECT_REFCOUNT (source1, "source1", 1); + ASSERT_OBJECT_REFCOUNT (source2, "source2", 1); /* Expected segments */ segments = g_list_append (segments, @@ -535,14 +535,14 @@ GST_START_TEST (test_complex_operations) commit_and_wait (comp, &ret); check_start_stop_duration (comp, 0, 4 * GST_SECOND, 4 * GST_SECOND); - ASSERT_OBJECT_REFCOUNT (source1, "source1", 2); + ASSERT_OBJECT_REFCOUNT (source1, "source1", 1); /* Add source2 */ gnl_composition_add (GST_BIN (comp), source2); commit_and_wait (comp, &ret); check_start_stop_duration (comp, 0, 6 * GST_SECOND, 6 * GST_SECOND); - ASSERT_OBJECT_REFCOUNT (source2, "source2", 2); + ASSERT_OBJECT_REFCOUNT (source2, "source2", 1); /* Add operaton */ @@ -550,7 +550,7 @@ GST_START_TEST (test_complex_operations) commit_and_wait (comp, &ret); check_start_stop_duration (comp, 0, 6 * GST_SECOND, 6 * GST_SECOND); - ASSERT_OBJECT_REFCOUNT (oper, "oper", 2); + ASSERT_OBJECT_REFCOUNT (oper, "oper", 1); /* Expected segments */ segments = g_list_append (segments, @@ -655,14 +655,14 @@ GST_START_TEST (test_complex_operations_bis) commit_and_wait (comp, &ret); check_start_stop_duration (comp, 0, 4 * GST_SECOND, 4 * GST_SECOND); - ASSERT_OBJECT_REFCOUNT (source1, "source1", 2); + ASSERT_OBJECT_REFCOUNT (source1, "source1", 1); /* Add source2 */ gnl_composition_add (GST_BIN (comp), source2); commit_and_wait (comp, &ret); check_start_stop_duration (comp, 0, 6 * GST_SECOND, 6 * GST_SECOND); - ASSERT_OBJECT_REFCOUNT (source2, "source2", 2); + ASSERT_OBJECT_REFCOUNT (source2, "source2", 1); /* Add operaton */ @@ -675,7 +675,7 @@ GST_START_TEST (test_complex_operations_bis) check_start_stop_duration (oper, 0 * GST_SECOND, 6 * GST_SECOND, 6 * GST_SECOND); - ASSERT_OBJECT_REFCOUNT (oper, "oper", 2); + ASSERT_OBJECT_REFCOUNT (oper, "oper", 1); /* Expected segments */ segments = g_list_append (segments,