mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
tests: fix compiler warnings in sinks test
This commit is contained in:
parent
434e7042d8
commit
26b1496b15
1 changed files with 3 additions and 1 deletions
|
@ -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. */
|
||||||
|
|
Loading…
Reference in a new issue