tests: fix message leak in seek test

https://bugzilla.gnome.org/show_bug.cgi?id=780757
This commit is contained in:
Vincent Penquerc'h 2017-03-31 12:22:00 +01:00 committed by Tim-Philipp Müller
parent c423df49af
commit 8d32fbb714

View file

@ -406,6 +406,7 @@ GST_START_TEST (test_loopback_1)
* screwed up. */ * screwed up. */
fail_unless (msg, "no message within the timed window"); fail_unless (msg, "no message within the timed window");
fail_unless_equals_string (GST_MESSAGE_TYPE_NAME (msg), "segment-done"); fail_unless_equals_string (GST_MESSAGE_TYPE_NAME (msg), "segment-done");
gst_message_unref (msg);
res = gst_element_set_state (bin, GST_STATE_NULL); res = gst_element_set_state (bin, GST_STATE_NULL);
fail_unless (res != GST_STATE_CHANGE_FAILURE, NULL); fail_unless (res != GST_STATE_CHANGE_FAILURE, NULL);