From: Guillaume Desmottes Date: Thu, 19 May 2016 08:19:01 +0000 (+0300) Subject: audiointerleave: fix message leaks by flushing the bus X-Git-Tag: 1.10.4~585 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2ec2e15a2a559718c26e8cc17c5d6498f6f17d80;p=platform%2Fupstream%2Fgst-plugins-bad.git audiointerleave: fix message leaks by flushing the bus https://bugzilla.gnome.org/show_bug.cgi?id=766663 --- diff --git a/tests/check/elements/audiointerleave.c b/tests/check/elements/audiointerleave.c index 222cd4d..cb992f3 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);