mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 16:50:47 +00:00
tests: Fix some more unit tests
This commit is contained in:
parent
044fcbe901
commit
c5c2827114
17 changed files with 116 additions and 127 deletions
|
@ -95,13 +95,6 @@ create_caps_rgba32 (void)
|
|||
return caps;
|
||||
}
|
||||
|
||||
static void
|
||||
push_caps (GstCaps * caps)
|
||||
{
|
||||
fail_unless (gst_pad_set_caps (mysrcpad, caps));
|
||||
gst_caps_unref (caps);
|
||||
}
|
||||
|
||||
static GstBuffer *
|
||||
create_buffer_rgb24_3x4 (void)
|
||||
{
|
||||
|
@ -167,7 +160,7 @@ GST_START_TEST (test_rgb24)
|
|||
fail_unless_equals_int (gst_element_set_state (alphacolor, GST_STATE_PLAYING),
|
||||
GST_STATE_CHANGE_SUCCESS);
|
||||
|
||||
push_caps (create_caps_rgb24 ());
|
||||
gst_check_setup_events (mysrcpad, alphacolor, incaps, GST_FORMAT_TIME);
|
||||
|
||||
inbuffer = create_buffer_rgb24_3x4 ();
|
||||
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
||||
|
@ -218,7 +211,7 @@ GST_START_TEST (test_rgba32)
|
|||
fail_unless_equals_int (gst_element_set_state (alphacolor, GST_STATE_PLAYING),
|
||||
GST_STATE_CHANGE_SUCCESS);
|
||||
|
||||
push_caps (create_caps_rgba32 ());
|
||||
gst_check_setup_events (mysrcpad, alphacolor, incaps, GST_FORMAT_TIME);
|
||||
|
||||
inbuffer = create_buffer_rgba32_3x4 ();
|
||||
GST_DEBUG ("Created buffer of %" G_GSIZE_FORMAT " bytes",
|
||||
|
|
|
@ -69,8 +69,7 @@ check_aspectratiocrop (const gchar * in_string, const gchar * out_string,
|
|||
src_pad = gst_pad_new (NULL, GST_PAD_SRC);
|
||||
gst_pad_set_active (src_pad, TRUE);
|
||||
GST_DEBUG ("setting caps %s %" GST_PTR_FORMAT, in_string, incaps);
|
||||
fail_unless (gst_pad_set_caps (src_pad, incaps),
|
||||
"Couldn't set input caps %" GST_PTR_FORMAT, incaps);
|
||||
gst_check_setup_events (src_pad, element, incaps, GST_FORMAT_TIME);
|
||||
|
||||
pad_peer = gst_element_get_static_pad (element, "sink");
|
||||
fail_if (pad_peer == NULL);
|
||||
|
|
|
@ -106,7 +106,7 @@ GST_START_TEST (test_passthrough)
|
|||
"could not set to playing");
|
||||
|
||||
caps = gst_caps_from_string (AMPLIFY_CAPS_STRING);
|
||||
fail_unless (gst_pad_set_caps (mysrcpad, caps));
|
||||
gst_check_setup_events (mysrcpad, amplify, caps, GST_FORMAT_TIME);
|
||||
gst_caps_unref (caps);
|
||||
|
||||
inbuffer =
|
||||
|
@ -150,7 +150,7 @@ GST_START_TEST (test_zero)
|
|||
"could not set to playing");
|
||||
|
||||
caps = gst_caps_from_string (AMPLIFY_CAPS_STRING);
|
||||
fail_unless (gst_pad_set_caps (mysrcpad, caps));
|
||||
gst_check_setup_events (mysrcpad, amplify, caps, GST_FORMAT_TIME);
|
||||
gst_caps_unref (caps);
|
||||
|
||||
inbuffer =
|
||||
|
@ -194,7 +194,7 @@ GST_START_TEST (test_050_clip)
|
|||
"could not set to playing");
|
||||
|
||||
caps = gst_caps_from_string (AMPLIFY_CAPS_STRING);
|
||||
fail_unless (gst_pad_set_caps (mysrcpad, caps));
|
||||
gst_check_setup_events (mysrcpad, amplify, caps, GST_FORMAT_TIME);
|
||||
gst_caps_unref (caps);
|
||||
|
||||
inbuffer =
|
||||
|
@ -238,7 +238,7 @@ GST_START_TEST (test_200_clip)
|
|||
"could not set to playing");
|
||||
|
||||
caps = gst_caps_from_string (AMPLIFY_CAPS_STRING);
|
||||
fail_unless (gst_pad_set_caps (mysrcpad, caps));
|
||||
gst_check_setup_events (mysrcpad, amplify, caps, GST_FORMAT_TIME);
|
||||
gst_caps_unref (caps);
|
||||
|
||||
inbuffer =
|
||||
|
@ -283,7 +283,7 @@ GST_START_TEST (test_050_wrap_negative)
|
|||
"could not set to playing");
|
||||
|
||||
caps = gst_caps_from_string (AMPLIFY_CAPS_STRING);
|
||||
fail_unless (gst_pad_set_caps (mysrcpad, caps));
|
||||
gst_check_setup_events (mysrcpad, amplify, caps, GST_FORMAT_TIME);
|
||||
gst_caps_unref (caps);
|
||||
|
||||
inbuffer =
|
||||
|
@ -328,7 +328,7 @@ GST_START_TEST (test_200_wrap_negative)
|
|||
"could not set to playing");
|
||||
|
||||
caps = gst_caps_from_string (AMPLIFY_CAPS_STRING);
|
||||
fail_unless (gst_pad_set_caps (mysrcpad, caps));
|
||||
gst_check_setup_events (mysrcpad, amplify, caps, GST_FORMAT_TIME);
|
||||
gst_caps_unref (caps);
|
||||
|
||||
inbuffer =
|
||||
|
@ -373,7 +373,7 @@ GST_START_TEST (test_050_wrap_positive)
|
|||
"could not set to playing");
|
||||
|
||||
caps = gst_caps_from_string (AMPLIFY_CAPS_STRING);
|
||||
fail_unless (gst_pad_set_caps (mysrcpad, caps));
|
||||
gst_check_setup_events (mysrcpad, amplify, caps, GST_FORMAT_TIME);
|
||||
gst_caps_unref (caps);
|
||||
|
||||
inbuffer =
|
||||
|
@ -418,7 +418,7 @@ GST_START_TEST (test_200_wrap_positive)
|
|||
"could not set to playing");
|
||||
|
||||
caps = gst_caps_from_string (AMPLIFY_CAPS_STRING);
|
||||
fail_unless (gst_pad_set_caps (mysrcpad, caps));
|
||||
gst_check_setup_events (mysrcpad, amplify, caps, GST_FORMAT_TIME);
|
||||
gst_caps_unref (caps);
|
||||
|
||||
inbuffer =
|
||||
|
|
|
@ -131,7 +131,7 @@ GST_START_TEST (test_type1_32_bp_0hz)
|
|||
gst_buffer_unmap (inbuffer, &map);
|
||||
|
||||
caps = gst_caps_from_string (BUFFER_CAPS_STRING_32);
|
||||
fail_unless (gst_pad_set_caps (mysrcpad, caps));
|
||||
gst_check_setup_events (mysrcpad, audiochebband, caps, GST_FORMAT_TIME);
|
||||
gst_caps_unref (caps);
|
||||
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
||||
|
||||
|
@ -197,7 +197,7 @@ GST_START_TEST (test_type1_32_bp_11025hz)
|
|||
gst_buffer_unmap (inbuffer, &map);
|
||||
|
||||
caps = gst_caps_from_string (BUFFER_CAPS_STRING_32);
|
||||
fail_unless (gst_pad_set_caps (mysrcpad, caps));
|
||||
gst_check_setup_events (mysrcpad, audiochebband, caps, GST_FORMAT_TIME);
|
||||
gst_caps_unref (caps);
|
||||
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
||||
|
||||
|
@ -261,7 +261,7 @@ GST_START_TEST (test_type1_32_bp_22050hz)
|
|||
gst_buffer_unmap (inbuffer, &map);
|
||||
|
||||
caps = gst_caps_from_string (BUFFER_CAPS_STRING_32);
|
||||
fail_unless (gst_pad_set_caps (mysrcpad, caps));
|
||||
gst_check_setup_events (mysrcpad, audiochebband, caps, GST_FORMAT_TIME);
|
||||
gst_caps_unref (caps);
|
||||
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
||||
|
||||
|
@ -323,7 +323,7 @@ GST_START_TEST (test_type1_32_br_0hz)
|
|||
gst_buffer_unmap (inbuffer, &map);
|
||||
|
||||
caps = gst_caps_from_string (BUFFER_CAPS_STRING_32);
|
||||
fail_unless (gst_pad_set_caps (mysrcpad, caps));
|
||||
gst_check_setup_events (mysrcpad, audiochebband, caps, GST_FORMAT_TIME);
|
||||
gst_caps_unref (caps);
|
||||
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
||||
|
||||
|
@ -389,7 +389,7 @@ GST_START_TEST (test_type1_32_br_11025hz)
|
|||
gst_buffer_unmap (inbuffer, &map);
|
||||
|
||||
caps = gst_caps_from_string (BUFFER_CAPS_STRING_32);
|
||||
fail_unless (gst_pad_set_caps (mysrcpad, caps));
|
||||
gst_check_setup_events (mysrcpad, audiochebband, caps, GST_FORMAT_TIME);
|
||||
gst_caps_unref (caps);
|
||||
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
||||
|
||||
|
@ -453,7 +453,7 @@ GST_START_TEST (test_type1_32_br_22050hz)
|
|||
gst_buffer_unmap (inbuffer, &map);
|
||||
|
||||
caps = gst_caps_from_string (BUFFER_CAPS_STRING_32);
|
||||
fail_unless (gst_pad_set_caps (mysrcpad, caps));
|
||||
gst_check_setup_events (mysrcpad, audiochebband, caps, GST_FORMAT_TIME);
|
||||
gst_caps_unref (caps);
|
||||
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
||||
|
||||
|
@ -515,7 +515,7 @@ GST_START_TEST (test_type1_64_bp_0hz)
|
|||
gst_buffer_unmap (inbuffer, &map);
|
||||
|
||||
caps = gst_caps_from_string (BUFFER_CAPS_STRING_64);
|
||||
fail_unless (gst_pad_set_caps (mysrcpad, caps));
|
||||
gst_check_setup_events (mysrcpad, audiochebband, caps, GST_FORMAT_TIME);
|
||||
gst_caps_unref (caps);
|
||||
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
||||
|
||||
|
@ -581,7 +581,7 @@ GST_START_TEST (test_type1_64_bp_11025hz)
|
|||
gst_buffer_unmap (inbuffer, &map);
|
||||
|
||||
caps = gst_caps_from_string (BUFFER_CAPS_STRING_64);
|
||||
fail_unless (gst_pad_set_caps (mysrcpad, caps));
|
||||
gst_check_setup_events (mysrcpad, audiochebband, caps, GST_FORMAT_TIME);
|
||||
gst_caps_unref (caps);
|
||||
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
||||
|
||||
|
@ -645,7 +645,7 @@ GST_START_TEST (test_type1_64_bp_22050hz)
|
|||
gst_buffer_unmap (inbuffer, &map);
|
||||
|
||||
caps = gst_caps_from_string (BUFFER_CAPS_STRING_64);
|
||||
fail_unless (gst_pad_set_caps (mysrcpad, caps));
|
||||
gst_check_setup_events (mysrcpad, audiochebband, caps, GST_FORMAT_TIME);
|
||||
gst_caps_unref (caps);
|
||||
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
||||
|
||||
|
@ -707,7 +707,7 @@ GST_START_TEST (test_type1_64_br_0hz)
|
|||
gst_buffer_unmap (inbuffer, &map);
|
||||
|
||||
caps = gst_caps_from_string (BUFFER_CAPS_STRING_64);
|
||||
fail_unless (gst_pad_set_caps (mysrcpad, caps));
|
||||
gst_check_setup_events (mysrcpad, audiochebband, caps, GST_FORMAT_TIME);
|
||||
gst_caps_unref (caps);
|
||||
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
||||
|
||||
|
@ -773,7 +773,7 @@ GST_START_TEST (test_type1_64_br_11025hz)
|
|||
gst_buffer_unmap (inbuffer, &map);
|
||||
|
||||
caps = gst_caps_from_string (BUFFER_CAPS_STRING_64);
|
||||
fail_unless (gst_pad_set_caps (mysrcpad, caps));
|
||||
gst_check_setup_events (mysrcpad, audiochebband, caps, GST_FORMAT_TIME);
|
||||
gst_caps_unref (caps);
|
||||
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
||||
|
||||
|
@ -837,7 +837,7 @@ GST_START_TEST (test_type1_64_br_22050hz)
|
|||
gst_buffer_unmap (inbuffer, &map);
|
||||
|
||||
caps = gst_caps_from_string (BUFFER_CAPS_STRING_64);
|
||||
fail_unless (gst_pad_set_caps (mysrcpad, caps));
|
||||
gst_check_setup_events (mysrcpad, audiochebband, caps, GST_FORMAT_TIME);
|
||||
gst_caps_unref (caps);
|
||||
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
||||
|
||||
|
@ -899,7 +899,7 @@ GST_START_TEST (test_type2_32_bp_0hz)
|
|||
gst_buffer_unmap (inbuffer, &map);
|
||||
|
||||
caps = gst_caps_from_string (BUFFER_CAPS_STRING_32);
|
||||
fail_unless (gst_pad_set_caps (mysrcpad, caps));
|
||||
gst_check_setup_events (mysrcpad, audiochebband, caps, GST_FORMAT_TIME);
|
||||
gst_caps_unref (caps);
|
||||
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
||||
|
||||
|
@ -965,7 +965,7 @@ GST_START_TEST (test_type2_32_bp_11025hz)
|
|||
gst_buffer_unmap (inbuffer, &map);
|
||||
|
||||
caps = gst_caps_from_string (BUFFER_CAPS_STRING_32);
|
||||
fail_unless (gst_pad_set_caps (mysrcpad, caps));
|
||||
gst_check_setup_events (mysrcpad, audiochebband, caps, GST_FORMAT_TIME);
|
||||
gst_caps_unref (caps);
|
||||
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
||||
|
||||
|
@ -1029,7 +1029,7 @@ GST_START_TEST (test_type2_32_bp_22050hz)
|
|||
gst_buffer_unmap (inbuffer, &map);
|
||||
|
||||
caps = gst_caps_from_string (BUFFER_CAPS_STRING_32);
|
||||
fail_unless (gst_pad_set_caps (mysrcpad, caps));
|
||||
gst_check_setup_events (mysrcpad, audiochebband, caps, GST_FORMAT_TIME);
|
||||
gst_caps_unref (caps);
|
||||
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
||||
|
||||
|
@ -1091,7 +1091,7 @@ GST_START_TEST (test_type2_32_br_0hz)
|
|||
gst_buffer_unmap (inbuffer, &map);
|
||||
|
||||
caps = gst_caps_from_string (BUFFER_CAPS_STRING_32);
|
||||
fail_unless (gst_pad_set_caps (mysrcpad, caps));
|
||||
gst_check_setup_events (mysrcpad, audiochebband, caps, GST_FORMAT_TIME);
|
||||
gst_caps_unref (caps);
|
||||
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
||||
|
||||
|
@ -1157,7 +1157,7 @@ GST_START_TEST (test_type2_32_br_11025hz)
|
|||
gst_buffer_unmap (inbuffer, &map);
|
||||
|
||||
caps = gst_caps_from_string (BUFFER_CAPS_STRING_32);
|
||||
fail_unless (gst_pad_set_caps (mysrcpad, caps));
|
||||
gst_check_setup_events (mysrcpad, audiochebband, caps, GST_FORMAT_TIME);
|
||||
gst_caps_unref (caps);
|
||||
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
||||
|
||||
|
@ -1221,7 +1221,7 @@ GST_START_TEST (test_type2_32_br_22050hz)
|
|||
gst_buffer_unmap (inbuffer, &map);
|
||||
|
||||
caps = gst_caps_from_string (BUFFER_CAPS_STRING_32);
|
||||
fail_unless (gst_pad_set_caps (mysrcpad, caps));
|
||||
gst_check_setup_events (mysrcpad, audiochebband, caps, GST_FORMAT_TIME);
|
||||
gst_caps_unref (caps);
|
||||
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
||||
|
||||
|
@ -1283,7 +1283,7 @@ GST_START_TEST (test_type2_64_bp_0hz)
|
|||
gst_buffer_unmap (inbuffer, &map);
|
||||
|
||||
caps = gst_caps_from_string (BUFFER_CAPS_STRING_64);
|
||||
fail_unless (gst_pad_set_caps (mysrcpad, caps));
|
||||
gst_check_setup_events (mysrcpad, audiochebband, caps, GST_FORMAT_TIME);
|
||||
gst_caps_unref (caps);
|
||||
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
||||
|
||||
|
@ -1349,7 +1349,7 @@ GST_START_TEST (test_type2_64_bp_11025hz)
|
|||
gst_buffer_unmap (inbuffer, &map);
|
||||
|
||||
caps = gst_caps_from_string (BUFFER_CAPS_STRING_64);
|
||||
fail_unless (gst_pad_set_caps (mysrcpad, caps));
|
||||
gst_check_setup_events (mysrcpad, audiochebband, caps, GST_FORMAT_TIME);
|
||||
gst_caps_unref (caps);
|
||||
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
||||
|
||||
|
@ -1413,7 +1413,7 @@ GST_START_TEST (test_type2_64_bp_22050hz)
|
|||
gst_buffer_unmap (inbuffer, &map);
|
||||
|
||||
caps = gst_caps_from_string (BUFFER_CAPS_STRING_64);
|
||||
fail_unless (gst_pad_set_caps (mysrcpad, caps));
|
||||
gst_check_setup_events (mysrcpad, audiochebband, caps, GST_FORMAT_TIME);
|
||||
gst_caps_unref (caps);
|
||||
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
||||
|
||||
|
@ -1475,7 +1475,7 @@ GST_START_TEST (test_type2_64_br_0hz)
|
|||
gst_buffer_unmap (inbuffer, &map);
|
||||
|
||||
caps = gst_caps_from_string (BUFFER_CAPS_STRING_64);
|
||||
fail_unless (gst_pad_set_caps (mysrcpad, caps));
|
||||
gst_check_setup_events (mysrcpad, audiochebband, caps, GST_FORMAT_TIME);
|
||||
gst_caps_unref (caps);
|
||||
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
||||
|
||||
|
@ -1541,7 +1541,7 @@ GST_START_TEST (test_type2_64_br_11025hz)
|
|||
gst_buffer_unmap (inbuffer, &map);
|
||||
|
||||
caps = gst_caps_from_string (BUFFER_CAPS_STRING_64);
|
||||
fail_unless (gst_pad_set_caps (mysrcpad, caps));
|
||||
gst_check_setup_events (mysrcpad, audiochebband, caps, GST_FORMAT_TIME);
|
||||
gst_caps_unref (caps);
|
||||
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
||||
|
||||
|
@ -1605,7 +1605,7 @@ GST_START_TEST (test_type2_64_br_22050hz)
|
|||
gst_buffer_unmap (inbuffer, &map);
|
||||
|
||||
caps = gst_caps_from_string (BUFFER_CAPS_STRING_64);
|
||||
fail_unless (gst_pad_set_caps (mysrcpad, caps));
|
||||
gst_check_setup_events (mysrcpad, audiochebband, caps, GST_FORMAT_TIME);
|
||||
gst_caps_unref (caps);
|
||||
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
||||
|
||||
|
|
|
@ -128,7 +128,7 @@ GST_START_TEST (test_type1_32_lp_0hz)
|
|||
gst_buffer_unmap (inbuffer, &map);
|
||||
|
||||
caps = gst_caps_from_string (BUFFER_CAPS_STRING_32);
|
||||
fail_unless (gst_pad_set_caps (mysrcpad, caps));
|
||||
gst_check_setup_events (mysrcpad, audiocheblimit, caps, GST_FORMAT_TIME);
|
||||
gst_caps_unref (caps);
|
||||
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
||||
|
||||
|
@ -189,7 +189,7 @@ GST_START_TEST (test_type1_32_lp_22050hz)
|
|||
gst_buffer_unmap (inbuffer, &map);
|
||||
|
||||
caps = gst_caps_from_string (BUFFER_CAPS_STRING_32);
|
||||
fail_unless (gst_pad_set_caps (mysrcpad, caps));
|
||||
gst_check_setup_events (mysrcpad, audiocheblimit, caps, GST_FORMAT_TIME);
|
||||
gst_caps_unref (caps);
|
||||
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
||||
|
||||
|
@ -248,7 +248,7 @@ GST_START_TEST (test_type1_32_hp_0hz)
|
|||
gst_buffer_unmap (inbuffer, &map);
|
||||
|
||||
caps = gst_caps_from_string (BUFFER_CAPS_STRING_32);
|
||||
fail_unless (gst_pad_set_caps (mysrcpad, caps));
|
||||
gst_check_setup_events (mysrcpad, audiocheblimit, caps, GST_FORMAT_TIME);
|
||||
gst_caps_unref (caps);
|
||||
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
||||
|
||||
|
@ -309,7 +309,7 @@ GST_START_TEST (test_type1_32_hp_22050hz)
|
|||
gst_buffer_unmap (inbuffer, &map);
|
||||
|
||||
caps = gst_caps_from_string (BUFFER_CAPS_STRING_32);
|
||||
fail_unless (gst_pad_set_caps (mysrcpad, caps));
|
||||
gst_check_setup_events (mysrcpad, audiocheblimit, caps, GST_FORMAT_TIME);
|
||||
gst_caps_unref (caps);
|
||||
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
||||
|
||||
|
@ -368,7 +368,7 @@ GST_START_TEST (test_type1_64_lp_0hz)
|
|||
gst_buffer_unmap (inbuffer, &map);
|
||||
|
||||
caps = gst_caps_from_string (BUFFER_CAPS_STRING_64);
|
||||
fail_unless (gst_pad_set_caps (mysrcpad, caps));
|
||||
gst_check_setup_events (mysrcpad, audiocheblimit, caps, GST_FORMAT_TIME);
|
||||
gst_caps_unref (caps);
|
||||
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
||||
|
||||
|
@ -429,7 +429,7 @@ GST_START_TEST (test_type1_64_lp_22050hz)
|
|||
gst_buffer_unmap (inbuffer, &map);
|
||||
|
||||
caps = gst_caps_from_string (BUFFER_CAPS_STRING_64);
|
||||
fail_unless (gst_pad_set_caps (mysrcpad, caps));
|
||||
gst_check_setup_events (mysrcpad, audiocheblimit, caps, GST_FORMAT_TIME);
|
||||
gst_caps_unref (caps);
|
||||
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
||||
|
||||
|
@ -488,7 +488,7 @@ GST_START_TEST (test_type1_64_hp_0hz)
|
|||
gst_buffer_unmap (inbuffer, &map);
|
||||
|
||||
caps = gst_caps_from_string (BUFFER_CAPS_STRING_64);
|
||||
fail_unless (gst_pad_set_caps (mysrcpad, caps));
|
||||
gst_check_setup_events (mysrcpad, audiocheblimit, caps, GST_FORMAT_TIME);
|
||||
gst_caps_unref (caps);
|
||||
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
||||
|
||||
|
@ -549,7 +549,7 @@ GST_START_TEST (test_type1_64_hp_22050hz)
|
|||
gst_buffer_unmap (inbuffer, &map);
|
||||
|
||||
caps = gst_caps_from_string (BUFFER_CAPS_STRING_64);
|
||||
fail_unless (gst_pad_set_caps (mysrcpad, caps));
|
||||
gst_check_setup_events (mysrcpad, audiocheblimit, caps, GST_FORMAT_TIME);
|
||||
gst_caps_unref (caps);
|
||||
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
||||
|
||||
|
@ -608,7 +608,7 @@ GST_START_TEST (test_type2_32_lp_0hz)
|
|||
gst_buffer_unmap (inbuffer, &map);
|
||||
|
||||
caps = gst_caps_from_string (BUFFER_CAPS_STRING_32);
|
||||
fail_unless (gst_pad_set_caps (mysrcpad, caps));
|
||||
gst_check_setup_events (mysrcpad, audiocheblimit, caps, GST_FORMAT_TIME);
|
||||
gst_caps_unref (caps);
|
||||
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
||||
|
||||
|
@ -669,7 +669,7 @@ GST_START_TEST (test_type2_32_lp_22050hz)
|
|||
gst_buffer_unmap (inbuffer, &map);
|
||||
|
||||
caps = gst_caps_from_string (BUFFER_CAPS_STRING_32);
|
||||
fail_unless (gst_pad_set_caps (mysrcpad, caps));
|
||||
gst_check_setup_events (mysrcpad, audiocheblimit, caps, GST_FORMAT_TIME);
|
||||
gst_caps_unref (caps);
|
||||
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
||||
|
||||
|
@ -728,7 +728,7 @@ GST_START_TEST (test_type2_32_hp_0hz)
|
|||
gst_buffer_unmap (inbuffer, &map);
|
||||
|
||||
caps = gst_caps_from_string (BUFFER_CAPS_STRING_32);
|
||||
fail_unless (gst_pad_set_caps (mysrcpad, caps));
|
||||
gst_check_setup_events (mysrcpad, audiocheblimit, caps, GST_FORMAT_TIME);
|
||||
gst_caps_unref (caps);
|
||||
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
||||
|
||||
|
@ -789,7 +789,7 @@ GST_START_TEST (test_type2_32_hp_22050hz)
|
|||
gst_buffer_unmap (inbuffer, &map);
|
||||
|
||||
caps = gst_caps_from_string (BUFFER_CAPS_STRING_32);
|
||||
fail_unless (gst_pad_set_caps (mysrcpad, caps));
|
||||
gst_check_setup_events (mysrcpad, audiocheblimit, caps, GST_FORMAT_TIME);
|
||||
gst_caps_unref (caps);
|
||||
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
||||
|
||||
|
@ -848,7 +848,7 @@ GST_START_TEST (test_type2_64_lp_0hz)
|
|||
gst_buffer_unmap (inbuffer, &map);
|
||||
|
||||
caps = gst_caps_from_string (BUFFER_CAPS_STRING_64);
|
||||
fail_unless (gst_pad_set_caps (mysrcpad, caps));
|
||||
gst_check_setup_events (mysrcpad, audiocheblimit, caps, GST_FORMAT_TIME);
|
||||
gst_caps_unref (caps);
|
||||
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
||||
|
||||
|
@ -909,7 +909,7 @@ GST_START_TEST (test_type2_64_lp_22050hz)
|
|||
gst_buffer_unmap (inbuffer, &map);
|
||||
|
||||
caps = gst_caps_from_string (BUFFER_CAPS_STRING_64);
|
||||
fail_unless (gst_pad_set_caps (mysrcpad, caps));
|
||||
gst_check_setup_events (mysrcpad, audiocheblimit, caps, GST_FORMAT_TIME);
|
||||
gst_caps_unref (caps);
|
||||
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
||||
|
||||
|
@ -968,7 +968,7 @@ GST_START_TEST (test_type2_64_hp_0hz)
|
|||
gst_buffer_unmap (inbuffer, &map);
|
||||
|
||||
caps = gst_caps_from_string (BUFFER_CAPS_STRING_64);
|
||||
fail_unless (gst_pad_set_caps (mysrcpad, caps));
|
||||
gst_check_setup_events (mysrcpad, audiocheblimit, caps, GST_FORMAT_TIME);
|
||||
gst_caps_unref (caps);
|
||||
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
||||
|
||||
|
@ -1029,7 +1029,7 @@ GST_START_TEST (test_type2_64_hp_22050hz)
|
|||
gst_buffer_unmap (inbuffer, &map);
|
||||
|
||||
caps = gst_caps_from_string (BUFFER_CAPS_STRING_64);
|
||||
fail_unless (gst_pad_set_caps (mysrcpad, caps));
|
||||
gst_check_setup_events (mysrcpad, audiocheblimit, caps, GST_FORMAT_TIME);
|
||||
gst_caps_unref (caps);
|
||||
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
||||
|
||||
|
|
|
@ -110,7 +110,7 @@ GST_START_TEST (test_passthrough)
|
|||
NULL, NULL);
|
||||
fail_unless (gst_buffer_memcmp (inbuffer, 0, in, 12) == 0);
|
||||
caps = gst_caps_from_string (DYNAMIC_CAPS_STRING);
|
||||
fail_unless (gst_pad_set_caps (mysrcpad, caps));
|
||||
gst_check_setup_events (mysrcpad, dynamic, caps, GST_FORMAT_TIME);
|
||||
gst_caps_unref (caps);
|
||||
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
||||
|
||||
|
@ -154,7 +154,7 @@ GST_START_TEST (test_compress_hard_50_50)
|
|||
gst_buffer_fill (inbuffer, 0, in, 16);
|
||||
fail_unless (gst_buffer_memcmp (inbuffer, 0, in, 16) == 0);
|
||||
caps = gst_caps_from_string (DYNAMIC_CAPS_STRING);
|
||||
fail_unless (gst_pad_set_caps (mysrcpad, caps));
|
||||
gst_check_setup_events (mysrcpad, dynamic, caps, GST_FORMAT_TIME);
|
||||
gst_caps_unref (caps);
|
||||
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
||||
|
||||
|
@ -202,7 +202,7 @@ GST_START_TEST (test_compress_soft_50_50)
|
|||
gst_buffer_fill (inbuffer, 0, in, 16);
|
||||
fail_unless (gst_buffer_memcmp (inbuffer, 0, in, 16) == 0);
|
||||
caps = gst_caps_from_string (DYNAMIC_CAPS_STRING);
|
||||
fail_unless (gst_pad_set_caps (mysrcpad, caps));
|
||||
gst_check_setup_events (mysrcpad, dynamic, caps, GST_FORMAT_TIME);
|
||||
gst_caps_unref (caps);
|
||||
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
||||
|
||||
|
@ -250,7 +250,7 @@ GST_START_TEST (test_compress_hard_100_50)
|
|||
gst_buffer_fill (inbuffer, 0, in, 16);
|
||||
fail_unless (gst_buffer_memcmp (inbuffer, 0, in, 16) == 0);
|
||||
caps = gst_caps_from_string (DYNAMIC_CAPS_STRING);
|
||||
fail_unless (gst_pad_set_caps (mysrcpad, caps));
|
||||
gst_check_setup_events (mysrcpad, dynamic, caps, GST_FORMAT_TIME);
|
||||
gst_caps_unref (caps);
|
||||
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
||||
|
||||
|
@ -299,7 +299,7 @@ GST_START_TEST (test_expand_hard_50_200)
|
|||
gst_buffer_fill (inbuffer, 0, in, 16);
|
||||
fail_unless (gst_buffer_memcmp (inbuffer, 0, in, 16) == 0);
|
||||
caps = gst_caps_from_string (DYNAMIC_CAPS_STRING);
|
||||
fail_unless (gst_pad_set_caps (mysrcpad, caps));
|
||||
gst_check_setup_events (mysrcpad, dynamic, caps, GST_FORMAT_TIME);
|
||||
gst_caps_unref (caps);
|
||||
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
||||
|
||||
|
@ -347,7 +347,7 @@ GST_START_TEST (test_expand_soft_50_200)
|
|||
gst_buffer_fill (inbuffer, 0, in, 16);
|
||||
fail_unless (gst_buffer_memcmp (inbuffer, 0, in, 16) == 0);
|
||||
caps = gst_caps_from_string (DYNAMIC_CAPS_STRING);
|
||||
fail_unless (gst_pad_set_caps (mysrcpad, caps));
|
||||
gst_check_setup_events (mysrcpad, dynamic, caps, GST_FORMAT_TIME);
|
||||
gst_caps_unref (caps);
|
||||
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
||||
|
||||
|
@ -395,7 +395,7 @@ GST_START_TEST (test_expand_hard_0_200)
|
|||
gst_buffer_fill (inbuffer, 0, in, 16);
|
||||
fail_unless (gst_buffer_memcmp (inbuffer, 0, in, 16) == 0);
|
||||
caps = gst_caps_from_string (DYNAMIC_CAPS_STRING);
|
||||
fail_unless (gst_pad_set_caps (mysrcpad, caps));
|
||||
gst_check_setup_events (mysrcpad, dynamic, caps, GST_FORMAT_TIME);
|
||||
gst_caps_unref (caps);
|
||||
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
||||
|
||||
|
|
|
@ -100,7 +100,7 @@ GST_START_TEST (test_passthrough)
|
|||
"could not set to playing");
|
||||
|
||||
caps = gst_caps_from_string (ECHO_CAPS_STRING);
|
||||
fail_unless (gst_pad_set_caps (mysrcpad, caps));
|
||||
gst_check_setup_events (mysrcpad, echo, caps, GST_FORMAT_TIME);
|
||||
gst_caps_unref (caps);
|
||||
|
||||
inbuffer =
|
||||
|
@ -146,7 +146,7 @@ GST_START_TEST (test_echo)
|
|||
"could not set to playing");
|
||||
|
||||
caps = gst_caps_from_string (ECHO_CAPS_STRING);
|
||||
fail_unless (gst_pad_set_caps (mysrcpad, caps));
|
||||
gst_check_setup_events (mysrcpad, echo, caps, GST_FORMAT_TIME);
|
||||
gst_caps_unref (caps);
|
||||
|
||||
inbuffer =
|
||||
|
@ -193,7 +193,7 @@ GST_START_TEST (test_feedback)
|
|||
"could not set to playing");
|
||||
|
||||
caps = gst_caps_from_string (ECHO_CAPS_STRING);
|
||||
fail_unless (gst_pad_set_caps (mysrcpad, caps));
|
||||
gst_check_setup_events (mysrcpad, echo, caps, GST_FORMAT_TIME);
|
||||
gst_caps_unref (caps);
|
||||
|
||||
inbuffer =
|
||||
|
|
|
@ -110,7 +110,7 @@ GST_START_TEST (test_passthrough)
|
|||
gst_buffer_fill (inbuffer, 0, in, 8);
|
||||
fail_unless (gst_buffer_memcmp (inbuffer, 0, in, 8) == 0);
|
||||
caps = gst_caps_from_string (INVERT_CAPS_STRING);
|
||||
gst_pad_set_caps (mysrcpad, caps);
|
||||
gst_check_setup_events (mysrcpad, invert, caps, GST_FORMAT_TIME);
|
||||
gst_caps_unref (caps);
|
||||
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
||||
|
||||
|
@ -154,7 +154,7 @@ GST_START_TEST (test_zero)
|
|||
gst_buffer_fill (inbuffer, 0, in, 8);
|
||||
fail_unless (gst_buffer_memcmp (inbuffer, 0, in, 8) == 0);
|
||||
caps = gst_caps_from_string (INVERT_CAPS_STRING);
|
||||
gst_pad_set_caps (mysrcpad, caps);
|
||||
gst_check_setup_events (mysrcpad, invert, caps, GST_FORMAT_TIME);
|
||||
gst_caps_unref (caps);
|
||||
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
||||
|
||||
|
@ -198,7 +198,7 @@ GST_START_TEST (test_full_inverse)
|
|||
gst_buffer_fill (inbuffer, 0, in, 8);
|
||||
fail_unless (gst_buffer_memcmp (inbuffer, 0, in, 8) == 0);
|
||||
caps = gst_caps_from_string (INVERT_CAPS_STRING);
|
||||
gst_pad_set_caps (mysrcpad, caps);
|
||||
gst_check_setup_events (mysrcpad, invert, caps, GST_FORMAT_TIME);
|
||||
gst_caps_unref (caps);
|
||||
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
||||
|
||||
|
@ -242,7 +242,7 @@ GST_START_TEST (test_25_inverse)
|
|||
gst_buffer_fill (inbuffer, 0, in, 8);
|
||||
fail_unless (gst_buffer_memcmp (inbuffer, 0, in, 8) == 0);
|
||||
caps = gst_caps_from_string (INVERT_CAPS_STRING);
|
||||
gst_pad_set_caps (mysrcpad, caps);
|
||||
gst_check_setup_events (mysrcpad, invert, caps, GST_FORMAT_TIME);
|
||||
gst_caps_unref (caps);
|
||||
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
||||
|
||||
|
|
|
@ -146,7 +146,7 @@ GST_START_TEST (test_mono_middle)
|
|||
"could not set to playing");
|
||||
|
||||
caps = gst_caps_from_string (PANORAMA_MONO_CAPS_STRING);
|
||||
fail_unless (gst_pad_set_caps (mysrcpad, caps));
|
||||
gst_check_setup_events (mysrcpad, panorama, caps, GST_FORMAT_TIME);
|
||||
gst_caps_unref (caps);
|
||||
|
||||
inbuffer =
|
||||
|
@ -187,7 +187,7 @@ GST_START_TEST (test_mono_left)
|
|||
"could not set to playing");
|
||||
|
||||
caps = gst_caps_from_string (PANORAMA_MONO_CAPS_STRING);
|
||||
fail_unless (gst_pad_set_caps (mysrcpad, caps));
|
||||
gst_check_setup_events (mysrcpad, panorama, caps, GST_FORMAT_TIME);
|
||||
gst_caps_unref (caps);
|
||||
|
||||
inbuffer =
|
||||
|
@ -229,7 +229,7 @@ GST_START_TEST (test_mono_right)
|
|||
"could not set to playing");
|
||||
|
||||
caps = gst_caps_from_string (PANORAMA_MONO_CAPS_STRING);
|
||||
fail_unless (gst_pad_set_caps (mysrcpad, caps));
|
||||
gst_check_setup_events (mysrcpad, panorama, caps, GST_FORMAT_TIME);
|
||||
gst_caps_unref (caps);
|
||||
|
||||
inbuffer =
|
||||
|
@ -269,7 +269,7 @@ GST_START_TEST (test_stereo_middle)
|
|||
"could not set to playing");
|
||||
|
||||
caps = gst_caps_from_string (PANORAMA_STEREO_CAPS_STRING);
|
||||
fail_unless (gst_pad_set_caps (mysrcpad, caps));
|
||||
gst_check_setup_events (mysrcpad, panorama, caps, GST_FORMAT_TIME);
|
||||
gst_caps_unref (caps);
|
||||
|
||||
inbuffer =
|
||||
|
@ -310,7 +310,7 @@ GST_START_TEST (test_stereo_left)
|
|||
"could not set to playing");
|
||||
|
||||
caps = gst_caps_from_string (PANORAMA_STEREO_CAPS_STRING);
|
||||
fail_unless (gst_pad_set_caps (mysrcpad, caps));
|
||||
gst_check_setup_events (mysrcpad, panorama, caps, GST_FORMAT_TIME);
|
||||
gst_caps_unref (caps);
|
||||
|
||||
inbuffer =
|
||||
|
@ -352,7 +352,7 @@ GST_START_TEST (test_stereo_right)
|
|||
"could not set to playing");
|
||||
|
||||
caps = gst_caps_from_string (PANORAMA_STEREO_CAPS_STRING);
|
||||
fail_unless (gst_pad_set_caps (mysrcpad, caps));
|
||||
gst_check_setup_events (mysrcpad, panorama, caps, GST_FORMAT_TIME);
|
||||
gst_caps_unref (caps);
|
||||
|
||||
inbuffer =
|
||||
|
@ -397,7 +397,7 @@ GST_START_TEST (test_mono_middle_simple)
|
|||
gst_buffer_new_wrapped_full (GST_MEMORY_FLAG_READONLY, in, sizeof (in), 0,
|
||||
sizeof (in), NULL, NULL);
|
||||
caps = gst_caps_from_string (PANORAMA_MONO_CAPS_STRING);
|
||||
fail_unless (gst_pad_set_caps (mysrcpad, caps));
|
||||
gst_check_setup_events (mysrcpad, panorama, caps, GST_FORMAT_TIME);
|
||||
gst_caps_unref (caps);
|
||||
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
||||
|
||||
|
@ -439,7 +439,7 @@ GST_START_TEST (test_mono_left_simple)
|
|||
sizeof (in), NULL, NULL);
|
||||
fail_unless (gst_buffer_memcmp (inbuffer, 0, in, 4) == 0);
|
||||
caps = gst_caps_from_string (PANORAMA_MONO_CAPS_STRING);
|
||||
fail_unless (gst_pad_set_caps (mysrcpad, caps));
|
||||
gst_check_setup_events (mysrcpad, panorama, caps, GST_FORMAT_TIME);
|
||||
gst_caps_unref (caps);
|
||||
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
||||
|
||||
|
@ -481,7 +481,7 @@ GST_START_TEST (test_mono_right_simple)
|
|||
sizeof (in), NULL, NULL);
|
||||
fail_unless (gst_buffer_memcmp (inbuffer, 0, in, 4) == 0);
|
||||
caps = gst_caps_from_string (PANORAMA_MONO_CAPS_STRING);
|
||||
fail_unless (gst_pad_set_caps (mysrcpad, caps));
|
||||
gst_check_setup_events (mysrcpad, panorama, caps, GST_FORMAT_TIME);
|
||||
gst_caps_unref (caps);
|
||||
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
||||
|
||||
|
@ -520,7 +520,7 @@ GST_START_TEST (test_stereo_middle_simple)
|
|||
gst_buffer_new_wrapped_full (GST_MEMORY_FLAG_READONLY, in, sizeof (in), 0,
|
||||
sizeof (in), NULL, NULL);
|
||||
caps = gst_caps_from_string (PANORAMA_STEREO_CAPS_STRING);
|
||||
fail_unless (gst_pad_set_caps (mysrcpad, caps));
|
||||
gst_check_setup_events (mysrcpad, panorama, caps, GST_FORMAT_TIME);
|
||||
gst_caps_unref (caps);
|
||||
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
||||
|
||||
|
@ -562,7 +562,7 @@ GST_START_TEST (test_stereo_left_simple)
|
|||
sizeof (in), NULL, NULL);
|
||||
fail_unless (gst_buffer_memcmp (inbuffer, 0, in, 8) == 0);
|
||||
caps = gst_caps_from_string (PANORAMA_STEREO_CAPS_STRING);
|
||||
fail_unless (gst_pad_set_caps (mysrcpad, caps));
|
||||
gst_check_setup_events (mysrcpad, panorama, caps, GST_FORMAT_TIME);
|
||||
gst_caps_unref (caps);
|
||||
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
||||
|
||||
|
@ -604,7 +604,7 @@ GST_START_TEST (test_stereo_right_simple)
|
|||
sizeof (in), NULL, NULL);
|
||||
fail_unless (gst_buffer_memcmp (inbuffer, 0, in, 8) == 0);
|
||||
caps = gst_caps_from_string (PANORAMA_STEREO_CAPS_STRING);
|
||||
fail_unless (gst_pad_set_caps (mysrcpad, caps));
|
||||
gst_check_setup_events (mysrcpad, panorama, caps, GST_FORMAT_TIME);
|
||||
gst_caps_unref (caps);
|
||||
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
||||
|
||||
|
@ -652,7 +652,7 @@ GST_START_TEST (test_wrong_caps)
|
|||
|
||||
caps = gst_caps_from_string (PANORAMA_WRONG_CAPS_STRING);
|
||||
/* this actually succeeds, because the caps event is sticky */
|
||||
fail_unless (gst_pad_set_caps (mysrcpad, caps));
|
||||
gst_check_setup_events (mysrcpad, panorama, caps, GST_FORMAT_TIME);
|
||||
gst_caps_unref (caps);
|
||||
|
||||
/* pushing gives an error because it can't negotiate with wrong caps */
|
||||
|
|
|
@ -133,7 +133,7 @@ GST_START_TEST (test_32_bp_0hz)
|
|||
gst_buffer_unmap (inbuffer, &map);
|
||||
|
||||
caps = gst_caps_from_string (AUDIO_WSINC_BAND_CAPS_STRING_32);
|
||||
gst_pad_set_caps (mysrcpad, caps);
|
||||
gst_check_setup_events (mysrcpad, audiowsincband, caps, GST_FORMAT_TIME);
|
||||
gst_caps_unref (caps);
|
||||
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
||||
|
||||
|
@ -211,7 +211,7 @@ GST_START_TEST (test_32_bp_11025hz)
|
|||
gst_buffer_unmap (inbuffer, &map);
|
||||
|
||||
caps = gst_caps_from_string (AUDIO_WSINC_BAND_CAPS_STRING_32);
|
||||
gst_pad_set_caps (mysrcpad, caps);
|
||||
gst_check_setup_events (mysrcpad, audiowsincband, caps, GST_FORMAT_TIME);
|
||||
gst_caps_unref (caps);
|
||||
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
||||
|
||||
|
@ -286,7 +286,7 @@ GST_START_TEST (test_32_bp_22050hz)
|
|||
gst_buffer_unmap (inbuffer, &map);
|
||||
|
||||
caps = gst_caps_from_string (AUDIO_WSINC_BAND_CAPS_STRING_32);
|
||||
gst_pad_set_caps (mysrcpad, caps);
|
||||
gst_check_setup_events (mysrcpad, audiowsincband, caps, GST_FORMAT_TIME);
|
||||
gst_caps_unref (caps);
|
||||
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
||||
|
||||
|
@ -358,7 +358,7 @@ GST_START_TEST (test_32_br_0hz)
|
|||
gst_buffer_unmap (inbuffer, &map);
|
||||
|
||||
caps = gst_caps_from_string (AUDIO_WSINC_BAND_CAPS_STRING_32);
|
||||
gst_pad_set_caps (mysrcpad, caps);
|
||||
gst_check_setup_events (mysrcpad, audiowsincband, caps, GST_FORMAT_TIME);
|
||||
gst_caps_unref (caps);
|
||||
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
||||
|
||||
|
@ -435,7 +435,7 @@ GST_START_TEST (test_32_br_11025hz)
|
|||
gst_buffer_unmap (inbuffer, &map);
|
||||
|
||||
caps = gst_caps_from_string (AUDIO_WSINC_BAND_CAPS_STRING_32);
|
||||
gst_pad_set_caps (mysrcpad, caps);
|
||||
gst_check_setup_events (mysrcpad, audiowsincband, caps, GST_FORMAT_TIME);
|
||||
gst_caps_unref (caps);
|
||||
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
||||
|
||||
|
@ -510,7 +510,7 @@ GST_START_TEST (test_32_br_22050hz)
|
|||
gst_buffer_unmap (inbuffer, &map);
|
||||
|
||||
caps = gst_caps_from_string (AUDIO_WSINC_BAND_CAPS_STRING_32);
|
||||
gst_pad_set_caps (mysrcpad, caps);
|
||||
gst_check_setup_events (mysrcpad, audiowsincband, caps, GST_FORMAT_TIME);
|
||||
gst_caps_unref (caps);
|
||||
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
||||
|
||||
|
@ -580,7 +580,7 @@ GST_START_TEST (test_32_small_buffer)
|
|||
gst_buffer_unmap (inbuffer, &map);
|
||||
|
||||
caps = gst_caps_from_string (AUDIO_WSINC_BAND_CAPS_STRING_32);
|
||||
gst_pad_set_caps (mysrcpad, caps);
|
||||
gst_check_setup_events (mysrcpad, audiowsincband, caps, GST_FORMAT_TIME);
|
||||
gst_caps_unref (caps);
|
||||
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
||||
|
||||
|
@ -644,7 +644,7 @@ GST_START_TEST (test_64_bp_0hz)
|
|||
gst_buffer_unmap (inbuffer, &map);
|
||||
|
||||
caps = gst_caps_from_string (AUDIO_WSINC_BAND_CAPS_STRING_64);
|
||||
gst_pad_set_caps (mysrcpad, caps);
|
||||
gst_check_setup_events (mysrcpad, audiowsincband, caps, GST_FORMAT_TIME);
|
||||
gst_caps_unref (caps);
|
||||
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
||||
|
||||
|
@ -720,7 +720,7 @@ GST_START_TEST (test_64_bp_11025hz)
|
|||
gst_buffer_unmap (inbuffer, &map);
|
||||
|
||||
caps = gst_caps_from_string (AUDIO_WSINC_BAND_CAPS_STRING_64);
|
||||
gst_pad_set_caps (mysrcpad, caps);
|
||||
gst_check_setup_events (mysrcpad, audiowsincband, caps, GST_FORMAT_TIME);
|
||||
gst_caps_unref (caps);
|
||||
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
||||
|
||||
|
@ -795,7 +795,7 @@ GST_START_TEST (test_64_bp_22050hz)
|
|||
gst_buffer_unmap (inbuffer, &map);
|
||||
|
||||
caps = gst_caps_from_string (AUDIO_WSINC_BAND_CAPS_STRING_64);
|
||||
gst_pad_set_caps (mysrcpad, caps);
|
||||
gst_check_setup_events (mysrcpad, audiowsincband, caps, GST_FORMAT_TIME);
|
||||
gst_caps_unref (caps);
|
||||
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
||||
|
||||
|
@ -867,7 +867,7 @@ GST_START_TEST (test_64_br_0hz)
|
|||
gst_buffer_unmap (inbuffer, &map);
|
||||
|
||||
caps = gst_caps_from_string (AUDIO_WSINC_BAND_CAPS_STRING_64);
|
||||
gst_pad_set_caps (mysrcpad, caps);
|
||||
gst_check_setup_events (mysrcpad, audiowsincband, caps, GST_FORMAT_TIME);
|
||||
gst_caps_unref (caps);
|
||||
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
||||
|
||||
|
@ -944,7 +944,7 @@ GST_START_TEST (test_64_br_11025hz)
|
|||
gst_buffer_unmap (inbuffer, &map);
|
||||
|
||||
caps = gst_caps_from_string (AUDIO_WSINC_BAND_CAPS_STRING_64);
|
||||
gst_pad_set_caps (mysrcpad, caps);
|
||||
gst_check_setup_events (mysrcpad, audiowsincband, caps, GST_FORMAT_TIME);
|
||||
gst_caps_unref (caps);
|
||||
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
||||
|
||||
|
@ -1019,7 +1019,7 @@ GST_START_TEST (test_64_br_22050hz)
|
|||
gst_buffer_unmap (inbuffer, &map);
|
||||
|
||||
caps = gst_caps_from_string (AUDIO_WSINC_BAND_CAPS_STRING_64);
|
||||
gst_pad_set_caps (mysrcpad, caps);
|
||||
gst_check_setup_events (mysrcpad, audiowsincband, caps, GST_FORMAT_TIME);
|
||||
gst_caps_unref (caps);
|
||||
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
||||
|
||||
|
@ -1089,7 +1089,7 @@ GST_START_TEST (test_64_small_buffer)
|
|||
gst_buffer_unmap (inbuffer, &map);
|
||||
|
||||
caps = gst_caps_from_string (AUDIO_WSINC_BAND_CAPS_STRING_64);
|
||||
gst_pad_set_caps (mysrcpad, caps);
|
||||
gst_check_setup_events (mysrcpad, audiowsincband, caps, GST_FORMAT_TIME);
|
||||
gst_caps_unref (caps);
|
||||
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
||||
|
||||
|
|
|
@ -130,7 +130,7 @@ GST_START_TEST (test_32_lp_0hz)
|
|||
gst_buffer_unmap (inbuffer, &map);
|
||||
|
||||
caps = gst_caps_from_string (AUDIO_WSINC_LIMIT_CAPS_STRING_32);
|
||||
gst_pad_set_caps (mysrcpad, caps);
|
||||
gst_check_setup_events (mysrcpad, audiowsinclimit, caps, GST_FORMAT_TIME);
|
||||
gst_caps_unref (caps);
|
||||
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
||||
|
||||
|
@ -201,7 +201,7 @@ GST_START_TEST (test_32_lp_22050hz)
|
|||
gst_buffer_unmap (inbuffer, &map);
|
||||
|
||||
caps = gst_caps_from_string (AUDIO_WSINC_LIMIT_CAPS_STRING_32);
|
||||
gst_pad_set_caps (mysrcpad, caps);
|
||||
gst_check_setup_events (mysrcpad, audiowsinclimit, caps, GST_FORMAT_TIME);
|
||||
gst_caps_unref (caps);
|
||||
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
||||
|
||||
|
@ -270,7 +270,7 @@ GST_START_TEST (test_32_hp_0hz)
|
|||
gst_buffer_unmap (inbuffer, &map);
|
||||
|
||||
caps = gst_caps_from_string (AUDIO_WSINC_LIMIT_CAPS_STRING_32);
|
||||
gst_pad_set_caps (mysrcpad, caps);
|
||||
gst_check_setup_events (mysrcpad, audiowsinclimit, caps, GST_FORMAT_TIME);
|
||||
gst_caps_unref (caps);
|
||||
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
||||
|
||||
|
@ -341,7 +341,7 @@ GST_START_TEST (test_32_hp_22050hz)
|
|||
gst_buffer_unmap (inbuffer, &map);
|
||||
|
||||
caps = gst_caps_from_string (AUDIO_WSINC_LIMIT_CAPS_STRING_32);
|
||||
gst_pad_set_caps (mysrcpad, caps);
|
||||
gst_check_setup_events (mysrcpad, audiowsinclimit, caps, GST_FORMAT_TIME);
|
||||
gst_caps_unref (caps);
|
||||
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
||||
|
||||
|
@ -409,7 +409,7 @@ GST_START_TEST (test_32_small_buffer)
|
|||
gst_buffer_unmap (inbuffer, &map);
|
||||
|
||||
caps = gst_caps_from_string (AUDIO_WSINC_LIMIT_CAPS_STRING_32);
|
||||
gst_pad_set_caps (mysrcpad, caps);
|
||||
gst_check_setup_events (mysrcpad, audiowsinclimit, caps, GST_FORMAT_TIME);
|
||||
gst_caps_unref (caps);
|
||||
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
||||
|
||||
|
@ -464,7 +464,7 @@ GST_START_TEST (test_64_lp_0hz)
|
|||
gst_buffer_unmap (inbuffer, &map);
|
||||
|
||||
caps = gst_caps_from_string (AUDIO_WSINC_LIMIT_CAPS_STRING_64);
|
||||
gst_pad_set_caps (mysrcpad, caps);
|
||||
gst_check_setup_events (mysrcpad, audiowsinclimit, caps, GST_FORMAT_TIME);
|
||||
gst_caps_unref (caps);
|
||||
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
||||
|
||||
|
@ -535,7 +535,7 @@ GST_START_TEST (test_64_lp_22050hz)
|
|||
gst_buffer_unmap (inbuffer, &map);
|
||||
|
||||
caps = gst_caps_from_string (AUDIO_WSINC_LIMIT_CAPS_STRING_64);
|
||||
gst_pad_set_caps (mysrcpad, caps);
|
||||
gst_check_setup_events (mysrcpad, audiowsinclimit, caps, GST_FORMAT_TIME);
|
||||
gst_caps_unref (caps);
|
||||
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
||||
|
||||
|
@ -604,7 +604,7 @@ GST_START_TEST (test_64_hp_0hz)
|
|||
gst_buffer_unmap (inbuffer, &map);
|
||||
|
||||
caps = gst_caps_from_string (AUDIO_WSINC_LIMIT_CAPS_STRING_64);
|
||||
gst_pad_set_caps (mysrcpad, caps);
|
||||
gst_check_setup_events (mysrcpad, audiowsinclimit, caps, GST_FORMAT_TIME);
|
||||
gst_caps_unref (caps);
|
||||
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
||||
|
||||
|
@ -675,7 +675,7 @@ GST_START_TEST (test_64_hp_22050hz)
|
|||
gst_buffer_unmap (inbuffer, &map);
|
||||
|
||||
caps = gst_caps_from_string (AUDIO_WSINC_LIMIT_CAPS_STRING_64);
|
||||
gst_pad_set_caps (mysrcpad, caps);
|
||||
gst_check_setup_events (mysrcpad, audiowsinclimit, caps, GST_FORMAT_TIME);
|
||||
gst_caps_unref (caps);
|
||||
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
||||
|
||||
|
@ -743,7 +743,7 @@ GST_START_TEST (test_64_small_buffer)
|
|||
gst_buffer_unmap (inbuffer, &map);
|
||||
|
||||
caps = gst_caps_from_string (AUDIO_WSINC_LIMIT_CAPS_STRING_64);
|
||||
gst_pad_set_caps (mysrcpad, caps);
|
||||
gst_check_setup_events (mysrcpad, audiowsinclimit, caps, GST_FORMAT_TIME);
|
||||
gst_caps_unref (caps);
|
||||
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
||||
|
||||
|
|
|
@ -161,7 +161,6 @@ check_avimux_pad (GstStaticPadTemplate * srctemplate,
|
|||
guint8 data5[4] = "strf";
|
||||
guint8 data6[4] = "LIST";
|
||||
guint8 data7[4] = "movi";
|
||||
GstSegment segment;
|
||||
|
||||
avimux = setup_avimux (srctemplate, sinkname);
|
||||
fail_unless (gst_element_set_state (avimux,
|
||||
|
@ -170,13 +169,9 @@ check_avimux_pad (GstStaticPadTemplate * srctemplate,
|
|||
|
||||
inbuffer = gst_buffer_new_and_alloc (1);
|
||||
caps = gst_caps_from_string (src_caps_string);
|
||||
gst_pad_set_caps (mysrcpad, caps);
|
||||
gst_check_setup_events (mysrcpad, avimux, caps, GST_FORMAT_TIME);
|
||||
gst_caps_unref (caps);
|
||||
|
||||
/* ensure segment (format) properly setup */
|
||||
gst_segment_init (&segment, GST_FORMAT_TIME);
|
||||
fail_unless (gst_pad_push_event (mysrcpad, gst_event_new_segment (&segment)));
|
||||
|
||||
GST_BUFFER_TIMESTAMP (inbuffer) = 0;
|
||||
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
||||
fail_unless (gst_pad_push (mysrcpad, inbuffer) == GST_FLOW_OK);
|
||||
|
|
|
@ -70,19 +70,16 @@ static GstElement *
|
|||
setup_avisubtitle (void)
|
||||
{
|
||||
GstElement *avisubtitle;
|
||||
GstCaps *sinkcaps, *srccaps;
|
||||
GstCaps *srccaps;
|
||||
|
||||
GST_DEBUG ("setup_avisubtitle");
|
||||
avisubtitle = gst_check_setup_element ("avisubtitle");
|
||||
sinkcaps = gst_caps_new_empty_simple ("application/x-subtitle");
|
||||
mysinkpad = gst_check_setup_sink_pad (avisubtitle, &sink_template);
|
||||
srccaps = gst_caps_new_empty_simple ("application/x-subtitle-avi");
|
||||
mysrcpad = gst_check_setup_src_pad (avisubtitle, &src_template);
|
||||
gst_pad_set_active (mysinkpad, TRUE);
|
||||
gst_pad_set_active (mysrcpad, TRUE);
|
||||
fail_unless (gst_pad_set_caps (mysinkpad, sinkcaps));
|
||||
fail_unless (gst_pad_set_caps (mysrcpad, srccaps));
|
||||
gst_caps_unref (sinkcaps);
|
||||
srccaps = gst_caps_new_empty_simple ("application/x-subtitle-avi");
|
||||
gst_check_setup_events (mysrcpad, avisubtitle, srccaps, GST_FORMAT_TIME);
|
||||
gst_caps_unref (srccaps);
|
||||
return avisubtitle;
|
||||
}
|
||||
|
|
|
@ -90,7 +90,7 @@ push_and_test (GstCaps * prop_caps, gboolean join, gboolean replace,
|
|||
ASSERT_BUFFER_REFCOUNT (buffer, "buffer", 1);
|
||||
gst_buffer_fill (buffer, 0, "data", 4);
|
||||
|
||||
gst_pad_set_caps (mysrcpad, in_caps);
|
||||
gst_check_setup_events (mysrcpad, capssetter, in_caps, GST_FORMAT_TIME);
|
||||
gst_caps_unref (in_caps);
|
||||
|
||||
/* pushing gives away my reference ... */
|
||||
|
|
|
@ -276,8 +276,13 @@ static void
|
|||
deinterlace_set_caps_and_check (GstCaps * input, gboolean must_deinterlace)
|
||||
{
|
||||
GstCaps *othercaps = NULL;
|
||||
GstSegment segment;
|
||||
|
||||
gst_pad_send_event (sinkpad, gst_event_new_stream_start ("test"));
|
||||
fail_unless (gst_pad_set_caps (sinkpad, input));
|
||||
gst_segment_init (&segment, GST_FORMAT_TIME);
|
||||
gst_pad_send_event (sinkpad, gst_event_new_segment (&segment));
|
||||
|
||||
g_object_get (srcpad, "caps", &othercaps, NULL);
|
||||
|
||||
if (must_deinterlace) {
|
||||
|
|
|
@ -172,7 +172,7 @@ GST_START_TEST (test_rtpdtmfdepay)
|
|||
"encoding-name", G_TYPE_STRING, "TELEPHONE-EVENT",
|
||||
"media", G_TYPE_STRING, "audio",
|
||||
"clock-rate", G_TYPE_INT, 1000, "payload", G_TYPE_INT, 99, NULL);
|
||||
fail_unless (gst_pad_set_caps (src, caps_in));
|
||||
gst_check_setup_events (src, dtmfdepay, caps_in, GST_FORMAT_TIME);
|
||||
gst_caps_unref (caps_in);
|
||||
|
||||
caps_out = gst_pad_get_current_caps (sink);
|
||||
|
|
|
@ -114,7 +114,7 @@ GST_START_TEST (test_equalizer_5bands_passthrough)
|
|||
gst_buffer_unmap (inbuffer, &map);
|
||||
|
||||
caps = gst_caps_from_string (EQUALIZER_CAPS_STRING);
|
||||
gst_pad_set_caps (mysrcpad, caps);
|
||||
gst_check_setup_events (mysrcpad, equalizer, caps, GST_FORMAT_TIME);
|
||||
gst_caps_unref (caps);
|
||||
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
||||
|
||||
|
@ -178,7 +178,7 @@ GST_START_TEST (test_equalizer_5bands_minus_24)
|
|||
rms_in = sqrt (rms_in / 1024);
|
||||
|
||||
caps = gst_caps_from_string (EQUALIZER_CAPS_STRING);
|
||||
gst_pad_set_caps (mysrcpad, caps);
|
||||
gst_check_setup_events (mysrcpad, equalizer, caps, GST_FORMAT_TIME);
|
||||
gst_caps_unref (caps);
|
||||
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
||||
|
||||
|
@ -246,7 +246,7 @@ GST_START_TEST (test_equalizer_5bands_plus_12)
|
|||
rms_in = sqrt (rms_in / 1024);
|
||||
|
||||
caps = gst_caps_from_string (EQUALIZER_CAPS_STRING);
|
||||
gst_pad_set_caps (mysrcpad, caps);
|
||||
gst_check_setup_events (mysrcpad, equalizer, caps, GST_FORMAT_TIME);
|
||||
gst_caps_unref (caps);
|
||||
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
||||
|
||||
|
|
Loading…
Reference in a new issue