diff --git a/tests/check/gst/gstpad.c b/tests/check/gst/gstpad.c index 7ee0feeee2..3a4ee0d5d0 100644 --- a/tests/check/gst/gstpad.c +++ b/tests/check/gst/gstpad.c @@ -169,15 +169,10 @@ GST_START_TEST (test_get_allowed_caps) { GstPad *src, *sink; GstCaps *caps, *gotcaps; - GstBuffer *buffer; GstPadLinkReturn plr; ASSERT_CRITICAL (gst_pad_get_allowed_caps (NULL)); - buffer = gst_buffer_new (); - ASSERT_CRITICAL (gst_pad_get_allowed_caps ((GstPad *) buffer)); - gst_buffer_unref (buffer); - src = gst_pad_new ("src", GST_PAD_SRC); fail_if (src == NULL); caps = gst_pad_get_allowed_caps (src);