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:
6fdb4df
)
tests: filesrc: init and clear GCond and mutex
author
Tim-Philipp Müller
<tim@centricular.com>
Mon, 28 Nov 2016 11:10:05 +0000
(11:10 +0000)
committer
Tim-Philipp Müller
<tim@centricular.com>
Mon, 28 Nov 2016 11:19:24 +0000
(11:19 +0000)
Might otherwise leak on non-Linux systems.
tests/check/elements/filesrc.c
patch
|
blob
|
history
diff --git
a/tests/check/elements/filesrc.c
b/tests/check/elements/filesrc.c
index
65b5fb3
..
d60f18f
100644
(file)
--- a/
tests/check/elements/filesrc.c
+++ b/
tests/check/elements/filesrc.c
@@
-71,6
+71,9
@@
setup_filesrc (void)
{
GstElement *filesrc;
+ g_cond_init (&eos_cond);
+ g_mutex_init (&event_mutex);
+
GST_DEBUG ("setup_filesrc");
filesrc = gst_check_setup_element ("filesrc");
mysinkpad = gst_check_setup_sink_pad (filesrc, &sinktemplate);
@@
-87,6
+90,9
@@
cleanup_filesrc (GstElement * filesrc)
gst_pad_set_active (mysinkpad, FALSE);
gst_check_teardown_sink_pad (filesrc);
gst_check_teardown_element (filesrc);
+
+ g_mutex_clear (&event_mutex);
+ g_cond_clear (&eos_cond);
}
GST_START_TEST (test_seeking)