summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2016-05-19 11:19:01 +0300
committerSebastian Dröge <sebastian@centricular.com>2016-06-21 10:52:47 +0300
commit2ec2e15a2a559718c26e8cc17c5d6498f6f17d80 (patch)
tree75d80a47579ac33cb26a9cdab9d8a3aa2076b223 /tests
parent172529e151b2b2c2d7f144ee3dbc7257085171d2 (diff)
audiointerleave: fix message leaks by flushing the bus
https://bugzilla.gnome.org/show_bug.cgi?id=766663
Diffstat (limited to 'tests')
-rw-r--r--tests/check/elements/audiointerleave.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/check/elements/audiointerleave.c b/tests/check/elements/audiointerleave.c
index 222cd4df7..cb992f393 100644
--- a/tests/check/elements/audiointerleave.c
+++ b/tests/check/elements/audiointerleave.c
@@ -269,6 +269,7 @@ GST_START_TEST (test_audiointerleave_2ch)
g_cond_wait (&data_cond, &data_mutex);
g_mutex_unlock (&data_mutex);
+ gst_bus_set_flushing (bus, TRUE);
gst_element_set_state (interleave, GST_STATE_NULL);
gst_element_set_state (queue, GST_STATE_NULL);
@@ -410,6 +411,7 @@ GST_START_TEST (test_audiointerleave_2ch_1eos)
g_cond_wait (&data_cond, &data_mutex);
g_mutex_unlock (&data_mutex);
+ gst_bus_set_flushing (bus, TRUE);
gst_element_set_state (interleave, GST_STATE_NULL);
gst_element_set_state (queue, GST_STATE_NULL);