mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 23:06:49 +00:00
test:nle: Soften check on refcount
The composition might already have taken a new ref processing the source.
This commit is contained in:
parent
66e13d43b9
commit
b6b640d046
1 changed files with 6 additions and 2 deletions
|
@ -545,12 +545,16 @@ GST_START_TEST (test_complex_operations)
|
||||||
/* Add source1 */
|
/* Add source1 */
|
||||||
nle_composition_add (GST_BIN (comp), source1);
|
nle_composition_add (GST_BIN (comp), source1);
|
||||||
check_start_stop_duration (comp, 0, 0, 0);
|
check_start_stop_duration (comp, 0, 0, 0);
|
||||||
ASSERT_OBJECT_REFCOUNT (source1, "source1", 1);
|
/* If the composition already processed the source, the refcount
|
||||||
|
* might be 2 */
|
||||||
|
ASSERT_OBJECT_REFCOUNT_BETWEEN (source1, "source1", 1, 2);
|
||||||
|
|
||||||
/* Add source2 */
|
/* Add source2 */
|
||||||
nle_composition_add (GST_BIN (comp), source2);
|
nle_composition_add (GST_BIN (comp), source2);
|
||||||
check_start_stop_duration (comp, 0, 0, 0);
|
check_start_stop_duration (comp, 0, 0, 0);
|
||||||
ASSERT_OBJECT_REFCOUNT (source2, "source2", 1);
|
/* If the composition already processed the source, the refcount
|
||||||
|
* might be 2 */
|
||||||
|
ASSERT_OBJECT_REFCOUNT_BETWEEN (source2, "source2", 1, 2);
|
||||||
|
|
||||||
/* Add operaton */
|
/* Add operaton */
|
||||||
nle_composition_add (GST_BIN (comp), oper);
|
nle_composition_add (GST_BIN (comp), oper);
|
||||||
|
|
Loading…
Reference in a new issue