mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
vo{amr,aac}enc: Fix event handling in unit test
This commit is contained in:
parent
75bb160459
commit
bca7bdc27e
2 changed files with 2 additions and 2 deletions
|
@ -120,7 +120,7 @@ do_test (gboolean adts)
|
||||||
gst_buffer_memset (inbuffer, 0, 0, 1024 * nbuffers * 2 * 2);
|
gst_buffer_memset (inbuffer, 0, 0, 1024 * nbuffers * 2 * 2);
|
||||||
caps = gst_caps_from_string (AUDIO_CAPS_STRING);
|
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_caps_unref (caps);
|
||||||
GST_BUFFER_TIMESTAMP (inbuffer) = 0;
|
GST_BUFFER_TIMESTAMP (inbuffer) = 0;
|
||||||
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
||||||
|
|
|
@ -107,7 +107,7 @@ do_test (void)
|
||||||
gst_buffer_memset (inbuffer, 0, 0, 1024 * nbuffers * 2 * 2);
|
gst_buffer_memset (inbuffer, 0, 0, 1024 * nbuffers * 2 * 2);
|
||||||
caps = gst_caps_from_string (AUDIO_CAPS_STRING);
|
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_caps_unref (caps);
|
||||||
GST_BUFFER_TIMESTAMP (inbuffer) = 0;
|
GST_BUFFER_TIMESTAMP (inbuffer) = 0;
|
||||||
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
||||||
|
|
Loading…
Reference in a new issue