From 26b1496b159ee3269f57be3f2f1f530ad5f8307f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Fri, 7 Oct 2011 13:55:18 +0100 Subject: [PATCH] tests: fix compiler warnings in sinks test --- tests/check/generic/sinks.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/check/generic/sinks.c b/tests/check/generic/sinks.c index c647441d18..94bd07889e 100644 --- a/tests/check/generic/sinks.c +++ b/tests/check/generic/sinks.c @@ -1053,7 +1053,7 @@ GST_START_TEST (test_async_done) GstEvent *event; GstStateChangeReturn ret; GstPad *sinkpad; - GstFlowReturn res; + gboolean res; GstBus *bus; GThread *thread; gint64 position; @@ -1084,6 +1084,7 @@ GST_START_TEST (test_async_done) event = gst_event_new_segment (&segment); res = gst_pad_send_event (sinkpad, event); + fail_unless (res == TRUE); /* We have not yet received any buffers so we are still in the READY state, * the position is therefore still not queryable. */ @@ -1191,6 +1192,7 @@ GST_START_TEST (test_async_done_eos) segment.time = 10 * GST_SECOND; event = gst_event_new_segment (&segment); res = gst_pad_send_event (sinkpad, event); + fail_unless (res == TRUE); /* We have not yet received any buffers so we are still in the READY state, * the position is therefore still not queryable. */