mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-14 05:12:09 +00:00
tests:nle: Unref the bus before unrefing the pipeline
Aiming at fixing a rare race condition where we get: ../subprojects/gstreamer/libs/gst/check/gstcheck.c:1258:F:nlecomposition:test_seek_on_nested:0: nested_src0_0x1a1a310 is not destroyed, 1 refcounts left! The idea is that there might have a remaining GstMessage with the nested_src as `message.src` on the bus that has yet to be processed in some conditions leading to a reference still existing when unrefing the pipeline.
This commit is contained in:
parent
894df73011
commit
eac22d333a
1 changed files with 1 additions and 1 deletions
|
@ -554,9 +554,9 @@ GST_START_TEST (test_seek_on_nested)
|
|||
GST_DEBUG ("Resetted pipeline to NULL");
|
||||
|
||||
ASSERT_OBJECT_REFCOUNT_BETWEEN (pipeline, "main pipeline", 1, 2);
|
||||
gst_check_objects_destroyed_on_unref (pipeline, comp, nested_source, NULL);
|
||||
ASSERT_OBJECT_REFCOUNT_BETWEEN (bus, "main bus", 1, 2);
|
||||
gst_object_unref (bus);
|
||||
gst_check_objects_destroyed_on_unref (pipeline, comp, nested_source, NULL);
|
||||
|
||||
ges_deinit ();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue