mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-22 23:28:16 +00:00
tests: make more valgrind-friendly and plug caps leak
This commit is contained in:
parent
ffa672bd34
commit
336c76cb11
2 changed files with 3 additions and 0 deletions
|
@ -112,6 +112,8 @@ push_data (gint size, GstFlowReturn expected_return)
|
|||
GstFlowReturn res;
|
||||
|
||||
buffer = gst_buffer_new_and_alloc (size);
|
||||
/* make valgrind happier */
|
||||
gst_buffer_memset (buffer, 0, 0, size);
|
||||
|
||||
res = gst_pad_push (srcpad, buffer);
|
||||
fail_unless (res == expected_return,
|
||||
|
|
|
@ -138,6 +138,7 @@ test_video_profile (const gchar * profile, gint profile_id)
|
|||
/* code below assumes avc */
|
||||
gst_caps_set_simple (caps, "stream-format", G_TYPE_STRING, "avc", NULL);
|
||||
gst_pad_set_caps (mysinkpad, caps);
|
||||
gst_caps_unref (caps);
|
||||
gst_pad_use_fixed_caps (mysinkpad);
|
||||
|
||||
caps = gst_caps_from_string (VIDEO_CAPS_STRING);
|
||||
|
|
Loading…
Reference in a new issue