mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 23:06:49 +00:00
tests: filesrc: init and clear GCond and mutex
Might otherwise leak on non-Linux systems.
This commit is contained in:
parent
6fdb4df0f8
commit
0b6c1d1ddb
1 changed files with 6 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue