tests: Remove invalid buffer test in test_get_allowed_caps.

Passing a non-GObject pointer causes SIGSEGV on certain architectures.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/790>
This commit is contained in:
Doug Nazar 2021-04-11 08:23:27 -04:00 committed by GStreamer Marge Bot
parent d323942999
commit b500ac31ab

View file

@ -169,15 +169,10 @@ GST_START_TEST (test_get_allowed_caps)
{ {
GstPad *src, *sink; GstPad *src, *sink;
GstCaps *caps, *gotcaps; GstCaps *caps, *gotcaps;
GstBuffer *buffer;
GstPadLinkReturn plr; GstPadLinkReturn plr;
ASSERT_CRITICAL (gst_pad_get_allowed_caps (NULL)); 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); src = gst_pad_new ("src", GST_PAD_SRC);
fail_if (src == NULL); fail_if (src == NULL);
caps = gst_pad_get_allowed_caps (src); caps = gst_pad_get_allowed_caps (src);