mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 02:01:12 +00:00
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:
parent
f1971fe1e9
commit
8501fbd216
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue