diff options
Diffstat (limited to 'tests/check/gst/gstpad.c')
-rw-r--r-- | tests/check/gst/gstpad.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/check/gst/gstpad.c b/tests/check/gst/gstpad.c index 8d0bbbf3e..bfbc919e6 100644 --- a/tests/check/gst/gstpad.c +++ b/tests/check/gst/gstpad.c @@ -276,6 +276,8 @@ GST_START_TEST (test_push_unlinked) gst_pad_set_caps (src, caps); ASSERT_CAPS_REFCOUNT (caps, "caps", 2); + gst_pad_set_active (src, TRUE); + /* pushing on an unlinked pad will drop the buffer */ buffer = gst_buffer_new (); gst_buffer_ref (buffer); @@ -720,9 +722,8 @@ GST_START_TEST (test_block_async) gst_pad_set_active (pad, TRUE); gst_pad_set_blocked (pad, TRUE, block_async_cb, &data, NULL); - fail_unless (data[0] == FALSE); - fail_unless (data[1] == FALSE); - gst_pad_push (pad, gst_buffer_new ()); + fail_unless (data[0] == TRUE); + fail_unless (data[1] == TRUE); gst_object_unref (pad); } @@ -801,7 +802,7 @@ block_async_full_cb (GstPad * pad, gboolean blocked, gpointer user_data) *(gint *) user_data = (gint) blocked; gst_pad_push_event (pad, gst_event_new_flush_start ()); - GST_DEBUG ("setting state to 1"); + GST_DEBUG ("setting state to %d", blocked); } GST_START_TEST (test_block_async_full_destroy) @@ -817,6 +818,7 @@ GST_START_TEST (test_block_async_full_destroy) gst_pad_set_blocked (pad, TRUE, block_async_full_cb, &state, block_async_full_destroy); fail_unless (state == 0); + fail_unless (gst_pad_is_blocked (pad)); gst_pad_push (pad, gst_buffer_new ()); /* block_async_full_cb sets state to 1 and then flushes to unblock temporarily |