tests: fix compiler warnings in sinks test

This commit is contained in:
Tim-Philipp Müller 2011-10-07 13:55:18 +01:00
parent 434e7042d8
commit 26b1496b15

View file

@ -1053,7 +1053,7 @@ GST_START_TEST (test_async_done)
GstEvent *event; GstEvent *event;
GstStateChangeReturn ret; GstStateChangeReturn ret;
GstPad *sinkpad; GstPad *sinkpad;
GstFlowReturn res; gboolean res;
GstBus *bus; GstBus *bus;
GThread *thread; GThread *thread;
gint64 position; gint64 position;
@ -1084,6 +1084,7 @@ GST_START_TEST (test_async_done)
event = gst_event_new_segment (&segment); event = gst_event_new_segment (&segment);
res = gst_pad_send_event (sinkpad, event); 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, /* We have not yet received any buffers so we are still in the READY state,
* the position is therefore still not queryable. */ * the position is therefore still not queryable. */
@ -1191,6 +1192,7 @@ GST_START_TEST (test_async_done_eos)
segment.time = 10 * GST_SECOND; segment.time = 10 * GST_SECOND;
event = gst_event_new_segment (&segment); event = gst_event_new_segment (&segment);
res = gst_pad_send_event (sinkpad, event); 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, /* We have not yet received any buffers so we are still in the READY state,
* the position is therefore still not queryable. */ * the position is therefore still not queryable. */