rtpjitterbuffer test: Stop jitterbuffer before pads to avoid race
authorOlivier CrĂȘte <olivier.crete@collabora.com>
Fri, 14 Dec 2018 00:16:11 +0000 (19:16 -0500)
committerNicolas Dufresne <nicolas@ndufresne.ca>
Fri, 14 Dec 2018 12:10:16 +0000 (12:10 +0000)
commitc6e832594509818b22b6c20e395b40e77be260f7
tree1aea1b2c3dbc11c06a8fb8170410d65a143d8bbb
parent3de2c28fc12cade9ac4659f361c3ac894fb33756
rtpjitterbuffer test: Stop jitterbuffer before pads to avoid race

The teardown of the pads checks the refcount, but there are timers
inside the jitterbuffer that can push things, so if we're not lucky,
things could be pushed while the pads are being shut down. Putting the
jitterbuffer to NULL first avoids this.
tests/check/elements/rtpjitterbuffer.c