mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 09:55:36 +00:00
tests/check/elements/audiopanorama.c: Fix invalid memory access in audiopanorama test suite.
Original commit message from CVS: * tests/check/elements/audiopanorama.c: (GST_START_TEST): Fix invalid memory access in audiopanorama test suite.
This commit is contained in:
parent
b388296ee5
commit
f7eb58c235
2 changed files with 9 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2006-08-21 Jan Schmidt <thaytan@mad.scientist.com>
|
||||||
|
|
||||||
|
* tests/check/elements/audiopanorama.c: (GST_START_TEST):
|
||||||
|
Fix invalid memory access in audiopanorama test suite.
|
||||||
|
|
||||||
2006-08-21 Edward Hervey <edward@fluendo.com>
|
2006-08-21 Edward Hervey <edward@fluendo.com>
|
||||||
|
|
||||||
* tests/check/elements/.cvsignore:
|
* tests/check/elements/.cvsignore:
|
||||||
|
|
|
@ -271,7 +271,9 @@ GST_START_TEST (test_stereo_middle)
|
||||||
gst_caps_unref (caps);
|
gst_caps_unref (caps);
|
||||||
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
||||||
|
|
||||||
/* pushing gives away my reference ... */
|
/* pushing gives away my reference ... so keep an extra one */
|
||||||
|
gst_buffer_ref (inbuffer);
|
||||||
|
|
||||||
fail_unless (gst_pad_push (mysrcpad, inbuffer) == GST_FLOW_OK);
|
fail_unless (gst_pad_push (mysrcpad, inbuffer) == GST_FLOW_OK);
|
||||||
/* ... but it ends up being collected on the global buffer list */
|
/* ... but it ends up being collected on the global buffer list */
|
||||||
fail_unless_equals_int (g_list_length (buffers), 1);
|
fail_unless_equals_int (g_list_length (buffers), 1);
|
||||||
|
@ -283,6 +285,7 @@ GST_START_TEST (test_stereo_middle)
|
||||||
fail_unless (memcmp (GST_BUFFER_DATA (outbuffer), in, 8) == 0);
|
fail_unless (memcmp (GST_BUFFER_DATA (outbuffer), in, 8) == 0);
|
||||||
|
|
||||||
/* cleanup */
|
/* cleanup */
|
||||||
|
gst_buffer_unref (inbuffer);
|
||||||
cleanup_panorama (panorama);
|
cleanup_panorama (panorama);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue