element: clean up thread pool from gst_task_cleanup_all()
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Fri, 8 Jul 2016 14:36:01 +0000 (16:36 +0200)
committerTim-Philipp Müller <tim@centricular.com>
Fri, 8 Jul 2016 16:27:32 +0000 (17:27 +0100)
commit40727d9c838f1018f61c070f846454f28cde01c2
tree28dcc4ea6c129683bf5c491cfb97855f179ffc76
parent1ed4140d0068791f8993403a11c2c961552fd7e0
element: clean up thread pool from gst_task_cleanup_all()

This ensures that all async operations (started from gst_element_call_async())
have been completed and so there is no extra thread running.

Fix races when checking for leaks on unit tests as some of those
operations were still running when the leaks tracer was checking for
leaked objects.

https://bugzilla.gnome.org/show_bug.cgi?id=768577
gst/gst_private.h
gst/gstelement.c
gst/gsttask.c