No point in checking if the size of the subbuffer > 0, the code handles it correclty...
authorWim Taymans <wim.taymans@gmail.com>
Wed, 5 Jul 2006 17:09:18 +0000 (17:09 +0000)
committerWim Taymans <wim.taymans@gmail.com>
Wed, 5 Jul 2006 17:09:18 +0000 (17:09 +0000)
commitfa9bb7929eb4966b139eef3291aaedd1638eacb1
tree2d67f5d05ff86726c7208e9f8a98a0f34094ba49
parentd7c7dcc68684e6efdab055a96d2f5cb54126ff87
No point in checking if the size of the subbuffer > 0, the code handles it correclty as demonstrated by unit test.

Original commit message from CVS:
* gst/gstbuffer.c: (_gst_buffer_copy), (gst_buffer_create_sub):
* tests/check/gst/gstbuffer.c: (GST_START_TEST),
(gst_buffer_suite):
No point in checking if the size of the subbuffer > 0, the
code handles it correclty as demonstrated by unit test.
Also add a unit test for the zero sized _new_and_alloc and
_copy. Fixes #346663.
ChangeLog
gst/gstbuffer.c
tests/check/gst/gstbuffer.c