mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 23:06:49 +00:00
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:
parent
d323942999
commit
b500ac31ab
1 changed files with 0 additions and 5 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue