diff --git a/tests/check/elements/faac.c b/tests/check/elements/faac.c index b006185198..5dfd99bec7 100644 --- a/tests/check/elements/faac.c +++ b/tests/check/elements/faac.c @@ -119,7 +119,7 @@ do_test (gboolean adts) /* makes valgrind's memcheck happier */ gst_buffer_memset (inbuffer, 0, 0, 1024 * nbuffers * 2 * 2); caps = gst_caps_from_string (AUDIO_CAPS_STRING); - gst_pad_set_caps (mysrcpad, caps); + gst_check_setup_events (mysrcpad, faac, caps, GST_FORMAT_TIME); gst_caps_unref (caps); GST_BUFFER_TIMESTAMP (inbuffer) = 0; ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1); diff --git a/tests/check/elements/faad.c b/tests/check/elements/faad.c index 11bbb10cf4..f0714e4310 100644 --- a/tests/check/elements/faad.c +++ b/tests/check/elements/faad.c @@ -97,7 +97,8 @@ do_test (GstBuffer * inbuffer, GstCaps * caps) GST_BUFFER_TIMESTAMP (inbuffer) = 0; ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1); - gst_pad_set_caps (mysrcpad, caps); + gst_check_setup_events (mysrcpad, faad, caps, GST_FORMAT_TIME); + /* need to push twice to get faad output */ gst_buffer_ref (inbuffer); fail_unless (gst_pad_push (mysrcpad, inbuffer) == GST_FLOW_OK);