mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-21 15:56:42 +00:00
check/gst/gstcaps.c: Testcase to show error in buffer-on-caps serialisation.
Original commit message from CVS: * check/gst/gstcaps.c: (START_TEST), (gst_caps_suite): Testcase to show error in buffer-on-caps serialisation.
This commit is contained in:
parent
4a81d9b911
commit
dfe3f7f6f5
3 changed files with 37 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2005-06-20 Wim Taymans <wim@fluendo.com>
|
||||
|
||||
* check/gst/gstcaps.c: (START_TEST), (gst_caps_suite):
|
||||
Testcase to show error in buffer-on-caps serialisation.
|
||||
|
||||
2005-06-20 Andy Wingo <wingo@pobox.com>
|
||||
|
||||
* docs/random/wingo/porting-plugins-to-0.9: A pitiful document I
|
||||
|
|
|
@ -23,6 +23,21 @@
|
|||
#include "../gstcheck.h"
|
||||
|
||||
|
||||
START_TEST (test_buffer)
|
||||
{
|
||||
GstCaps *c1;
|
||||
GstBuffer *buffer;
|
||||
|
||||
buffer = gst_buffer_new_and_alloc (1000);
|
||||
c1 = gst_caps_new_simple ("audio/x-raw-int",
|
||||
"buffer", GST_TYPE_BUFFER, buffer, NULL);
|
||||
|
||||
GST_DEBUG ("caps: %" GST_PTR_FORMAT, c1);
|
||||
|
||||
gst_buffer_unref (buffer);
|
||||
}
|
||||
|
||||
END_TEST
|
||||
START_TEST (test_double_append)
|
||||
{
|
||||
GstStructure *s1;
|
||||
|
@ -70,6 +85,7 @@ gst_caps_suite (void)
|
|||
suite_add_tcase (s, tc_chain);
|
||||
tcase_add_test (tc_chain, test_double_append);
|
||||
tcase_add_test (tc_chain, test_mutability);
|
||||
tcase_add_test (tc_chain, test_buffer);
|
||||
return s;
|
||||
}
|
||||
|
||||
|
|
|
@ -23,6 +23,21 @@
|
|||
#include "../gstcheck.h"
|
||||
|
||||
|
||||
START_TEST (test_buffer)
|
||||
{
|
||||
GstCaps *c1;
|
||||
GstBuffer *buffer;
|
||||
|
||||
buffer = gst_buffer_new_and_alloc (1000);
|
||||
c1 = gst_caps_new_simple ("audio/x-raw-int",
|
||||
"buffer", GST_TYPE_BUFFER, buffer, NULL);
|
||||
|
||||
GST_DEBUG ("caps: %" GST_PTR_FORMAT, c1);
|
||||
|
||||
gst_buffer_unref (buffer);
|
||||
}
|
||||
|
||||
END_TEST
|
||||
START_TEST (test_double_append)
|
||||
{
|
||||
GstStructure *s1;
|
||||
|
@ -70,6 +85,7 @@ gst_caps_suite (void)
|
|||
suite_add_tcase (s, tc_chain);
|
||||
tcase_add_test (tc_chain, test_double_append);
|
||||
tcase_add_test (tc_chain, test_mutability);
|
||||
tcase_add_test (tc_chain, test_buffer);
|
||||
return s;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue