pad: Let threads in the test take ownership of a strong reference to their pads
authorSebastian Dröge <sebastian@centricular.com>
Fri, 14 Dec 2018 16:38:21 +0000 (18:38 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Fri, 14 Dec 2018 16:38:21 +0000 (18:38 +0200)
commit2682f378c83886fa7427de7ea1459c4018289935
tree7c227abb3dcc1b35c80793258d7ee84275fa3ec2
parent4af3b3f15993eb12441c7eb97b79983c54990cf2
pad: Let threads in the test take ownership of a strong reference to their pads

Otherwise it can easily happen that the pad is destroyed before the
thread disappears, as happened sometimes in the test_pad_probe_block_add_remove
test where joining of the thread was done *after* the pad was unreffed
and destroyed.

Fixes https://gitlab.freedesktop.org/gstreamer/gstreamer/issues/339
tests/check/gst/gstpad.c