tests: gstelement: Fix test_add_pad_while_paused flakiness
authorPhilippe Normand <philn@igalia.com>
Wed, 28 Dec 2022 17:42:31 +0000 (17:42 +0000)
committerPhilippe Normand <philn@igalia.com>
Wed, 28 Dec 2022 17:42:31 +0000 (17:42 +0000)
commit3f3bd7068785ac806c70c2eb427b522b949fa43a
treecf13324adf66106497f7769b5fecd23d90c9a8df
parent794ffe6ec6cb777b72d2a3ecc79a50def2a5c82d
tests: gstelement: Fix test_add_pad_while_paused flakiness

`gst_element_remove_pad()` doesn't automatically deactivate the pad, it has to
be done explicitly beforehand, otherwise the pad task might be left dangling,
exposed to undefined behaviour.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3653>
subprojects/gstreamer/tests/check/gst/gstelement.c