projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f1971fe
)
gst: Stop all unused threads in GThreadPool in gst_deinit()
author
Jonas Holmberg
<jonashg@axis.com>
Fri, 13 Sep 2013 12:41:45 +0000
(14:41 +0200)
committer
Sebastian Dröge
<slomo@circular-chaos.org>
Fri, 13 Sep 2013 12:42:55 +0000
(14:42 +0200)
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.
gst/gst.c
patch
|
blob
|
history
diff --git
a/gst/gst.c
b/gst/gst.c
index
fd676a3
..
0c947f9
100644
(file)
--- a/
gst/gst.c
+++ b/
gst/gst.c
@@
-942,6
+942,7
@@
gst_deinit (void)
return;
}
+ g_thread_pool_set_max_unused_threads (0);
bin_class = GST_BIN_CLASS (g_type_class_peek (gst_bin_get_type ()));
if (bin_class->pool != NULL) {
g_thread_pool_free (bin_class->pool, FALSE, TRUE);