tests:nle: Unref the bus before unrefing the pipeline
authorThibault Saunier <tsaunier@igalia.com>
Mon, 12 Aug 2019 21:37:39 +0000 (17:37 -0400)
committerThibault Saunier <tsaunier@igalia.com>
Mon, 12 Aug 2019 21:40:33 +0000 (17:40 -0400)
commiteac22d333aed68112e6da9ff13c3451585b53e21
tree96e8d26435c2fdec88a7f9e990787dc84470311e
parent894df730110bbd4ba61c3fbadef16116c9f0fc03
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.
tests/check/nle/nlecomposition.c