From 75bb160459437a6a0cdc207d0d5d313f5d0de8e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Wed, 15 May 2013 09:41:54 +0200 Subject: [PATCH] faad/faac: Fix event handling in unit test --- tests/check/elements/faac.c | 2 +- tests/check/elements/faad.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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);