summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian.droege@collabora.co.uk>2013-05-15 09:42:58 +0200
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2013-05-15 09:42:58 +0200
commitbca7bdc27e2c85d4577b3b678036867a7cd751a9 (patch)
tree6455b690508c56e3eaca7220175bb3faaded1931
parent75bb160459437a6a0cdc207d0d5d313f5d0de8e9 (diff)
downloadgstreamer-plugins-bad-bca7bdc27e2c85d4577b3b678036867a7cd751a9.tar.gz
vo{amr,aac}enc: Fix event handling in unit test
-rw-r--r--tests/check/elements/voaacenc.c2
-rw-r--r--tests/check/elements/voamrwbenc.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/check/elements/voaacenc.c b/tests/check/elements/voaacenc.c
index 10e617622..0cbeec095 100644
--- a/tests/check/elements/voaacenc.c
+++ b/tests/check/elements/voaacenc.c
@@ -120,7 +120,7 @@ do_test (gboolean adts)
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, voaacenc, 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/voamrwbenc.c b/tests/check/elements/voamrwbenc.c
index c6bb65c43..a6d3a010c 100644
--- a/tests/check/elements/voamrwbenc.c
+++ b/tests/check/elements/voamrwbenc.c
@@ -107,7 +107,7 @@ do_test (void)
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, voamrwbenc, caps, GST_FORMAT_TIME);
gst_caps_unref (caps);
GST_BUFFER_TIMESTAMP (inbuffer) = 0;
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);