gst/gstcaps.c: fix bug when converting from empty string.
authorBenjamin Otte <otte@gnome.org>
Thu, 22 Apr 2004 02:35:13 +0000 (02:35 +0000)
committerBenjamin Otte <otte@gnome.org>
Thu, 22 Apr 2004 02:35:13 +0000 (02:35 +0000)
commitd7c64c071b97948a5fabf86822c57ef29912809d
treebadd0074a01a4a7a970faa5573bea454c150a06f
parent15e8b2cfc79ff9f54250b14e94e37005c14f96a0
gst/gstcaps.c: fix bug when converting from empty string.

Original commit message from CVS:
* gst/gstcaps.c: (gst_caps_from_string_inplace):
fix bug when converting from empty string.
* gst/gstcaps.c: (gst_caps_new_any), (gst_caps_new_simple),
(gst_caps_new_full_valist), (gst_caps_copy), (gst_caps_copy_1):
use gst_caps_new_empty to allocate a new caps. Only that function
allocates memory for caps now.
* gst/gstcaps.c: (gst_caps_remove_and_get_structure),
(gst_caps_remove_structure):
add ability to remove one structure (but not to header yet)
* gst/gstcaps.c: (gst_caps_compare_structures),
(gst_caps_simplify), (gst_caps_structure_figure_out_union),
(gst_caps_structure_simplify), (gst_caps_do_simplify),
* gst/gstcaps.h:
add gst_caps_do_simplify that tries to simplify a caps in place.
Deprecate old gst_caps_simplify function.
* testsuite/caps/caps.h:
add caps.h containing a common set of caps to test against.
* testsuite/caps/sets.c: (check_caps), (main):
use it.
* testsuite/caps/.cvsignore:
* testsuite/caps/Makefile.am:
* testsuite/caps/simplify.c: (check_caps), (main):
add test to check correctness and efficency of caps simplification.
13 files changed:
ChangeLog
gst/gstcaps.c
gst/gstcaps.h
tests/old/testsuite/caps/.gitignore
tests/old/testsuite/caps/Makefile.am
tests/old/testsuite/caps/caps.h [new file with mode: 0644]
tests/old/testsuite/caps/sets.c
tests/old/testsuite/caps/simplify.c [new file with mode: 0644]
testsuite/caps/.gitignore
testsuite/caps/Makefile.am
testsuite/caps/caps.h [new file with mode: 0644]
testsuite/caps/sets.c
testsuite/caps/simplify.c [new file with mode: 0644]