GNOME Bugzilla – Bug 343334
GstCollectPads testsuite and fixes
Last modified: 2006-05-30 09:42:42 UTC
GstCollectPads leaks abidata.ABI.pad_list and doesn't unlock _PADS_PAD_LOCK when gst_collect_pads_remove_pad is called with a pad which hasn't been added.
Created attachment 66446 [details] [review] Testsuite and fixes
Patch by: Alessandro Decina <alessandro at nnva dot org> * libs/gst/base/gstcollectpads.c: (gst_collect_pads_remove_pad): Unlock mutex when removing an unknown pad. Fixes #343334. * tests/check/Makefile.am: * tests/check/libs/collectpads.c: (collected_cb), (push_buffer), (push_event), (setup), (teardown), (GST_START_TEST), (gst_collect_pads_suite), (main): Added collecpads check, disabled for now as check crashes for some reason.