harness: unref sink/src caps after deactivating pads
authorMatthew Waters <matthew@centricular.com>
Thu, 23 Jul 2020 04:51:51 +0000 (14:51 +1000)
committerMatthew Waters <matthew@centricular.com>
Thu, 23 Jul 2020 04:54:09 +0000 (14:54 +1000)
commit39aa7026593850930d0c0f9e50fb65d792b69394
treebe02139147d324864464e4e94dc08da4d44e8e9b
parentcd6bc944f908c90b80d6ccbae79ae58811e796e9
harness: unref sink/src caps after deactivating pads

Otherwise, access to the harness' sink/src caps is racy between any caps
query performed by an element and gst_harness_teardown().

Fixes: https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/issues/794
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/574>
libs/gst/check/gstharness.c