mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 22:36:33 +00:00
interleave: fix message leaks in test
Flush the bus when cleaning up so pending messages are destroyed. https://bugzilla.gnome.org/show_bug.cgi?id=766561
This commit is contained in:
parent
23c8f7128b
commit
fb41b307a6
1 changed files with 2 additions and 0 deletions
|
@ -251,6 +251,7 @@ GST_START_TEST (test_interleave_2ch)
|
|||
|
||||
fail_unless (have_data == 2);
|
||||
|
||||
gst_bus_set_flushing (bus, TRUE);
|
||||
gst_element_set_state (interleave, GST_STATE_NULL);
|
||||
gst_element_set_state (queue, GST_STATE_NULL);
|
||||
|
||||
|
@ -377,6 +378,7 @@ GST_START_TEST (test_interleave_2ch_1eos)
|
|||
|
||||
fail_unless (have_data == 2);
|
||||
|
||||
gst_bus_set_flushing (bus, TRUE);
|
||||
gst_element_set_state (interleave, GST_STATE_NULL);
|
||||
gst_element_set_state (queue, GST_STATE_NULL);
|
||||
|
||||
|
|
Loading…
Reference in a new issue