harness: Make sure pad functions are not called after teardown
authorStian Selnes <stian@pexip.com>
Mon, 28 May 2018 08:57:13 +0000 (10:57 +0200)
committerHavard Graff <havard.graff@gmail.com>
Thu, 13 Jun 2019 07:45:03 +0000 (09:45 +0200)
commit69430dd7ba070b0996662b4d1b6cd9600037341f
tree9ba5f45080daef2c61222ac56f1247cdc22af60a
parent6d16615093fcd2bb27e0725066f084adbb106be2
harness: Make sure pad functions are not called after teardown

For the query function there's a risk that the function may be called
after the harness has been teared down. Since the function accesses a
pointer to the harness via the pad's data, the harness must protect
itself against this.

Event and chain function is also handled for constistency, although
they don't have the same problem since the gstpad.c checks whether the
pad is flushing before calling these.
libs/gst/check/gstharness.c