diff options
-rw-r--r-- | tests/check/elements/voaacenc.c | 2 | ||||
-rw-r--r-- | tests/check/elements/voamrwbenc.c | 2 |
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); |