mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
pad: fix test raciness
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=679506
This commit is contained in:
parent
903bd7813d
commit
02eebca16b
1 changed files with 3 additions and 4 deletions
|
@ -1042,7 +1042,7 @@ test_pad_blocking_with_type (GstPadProbeType type)
|
||||||
|
|
||||||
/* wait for the block */
|
/* wait for the block */
|
||||||
while (!gst_pad_is_blocking (pad)) {
|
while (!gst_pad_is_blocking (pad)) {
|
||||||
g_usleep (100000);
|
g_usleep (10000);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* stop with flushing */
|
/* stop with flushing */
|
||||||
|
@ -1116,9 +1116,8 @@ test_queue_src_caps_notify (gboolean link_queue)
|
||||||
gst_pad_send_event (sink, gst_event_new_caps (caps));
|
gst_pad_send_event (sink, gst_event_new_caps (caps));
|
||||||
gst_caps_unref (caps);
|
gst_caps_unref (caps);
|
||||||
|
|
||||||
g_usleep (10000);
|
while (got_notify == FALSE)
|
||||||
|
g_usleep (10000);
|
||||||
fail_unless (got_notify == TRUE);
|
|
||||||
|
|
||||||
gst_element_set_state (queue, GST_STATE_NULL);
|
gst_element_set_state (queue, GST_STATE_NULL);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue