From: Doug Nazar Date: Sun, 11 Apr 2021 12:23:27 +0000 (-0400) Subject: tests: Remove invalid buffer test in test_get_allowed_caps. X-Git-Tag: 1.19.3~581 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b500ac31ab67b206815e564009afd7c547c00b45;p=platform%2Fupstream%2Fgstreamer.git tests: Remove invalid buffer test in test_get_allowed_caps. Passing a non-GObject pointer causes SIGSEGV on certain architectures. Part-of: --- diff --git a/tests/check/gst/gstpad.c b/tests/check/gst/gstpad.c index 7ee0fee..3a4ee0d 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);