tests: make more valgrind-friendly and plug caps leak

This commit is contained in:
Mark Nauwelaerts 2012-03-29 17:32:08 +02:00
parent ffa672bd34
commit 336c76cb11
2 changed files with 3 additions and 0 deletions

View file

@ -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,

View file

@ -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);