gst: Stop all unused threads in GThreadPool in gst_deinit()

Since the default number of max unused threads in GThreadPool has been
changed from 0 to 2 it needs to be set to 0 to stop all threads or
valgrind will report them as memory leaks.
This commit is contained in:
Jonas Holmberg 2013-09-13 14:41:45 +02:00 committed by Sebastian Dröge
parent f1971fe1e9
commit 8501fbd216

View file

@ -942,6 +942,7 @@ gst_deinit (void)
return; return;
} }
g_thread_pool_set_max_unused_threads (0);
bin_class = GST_BIN_CLASS (g_type_class_peek (gst_bin_get_type ())); bin_class = GST_BIN_CLASS (g_type_class_peek (gst_bin_get_type ()));
if (bin_class->pool != NULL) { if (bin_class->pool != NULL) {
g_thread_pool_free (bin_class->pool, FALSE, TRUE); g_thread_pool_free (bin_class->pool, FALSE, TRUE);