gstreamer/plugins/elements
Andy Wingo 7c0804b15c testsuite/caps/value_serialize.c: merge from HEAD.
Original commit message from CVS:
2005-02-10  Andy Wingo  <wingo@pobox.com>

* testsuite/caps/value_serialize.c: merge from HEAD.

* testsuite/caps/subtract.c:
* testsuite/caps/filtercaps.c:
* testsuite/caps/enumcaps.c:
* testsuite/caps/deserialize.c:
* testsuite/caps/caps.c:
* testsuite/caps/audioscale.c: Unref caps, not free.

* testsuite/caps/caps_strings: Merged from HEAD.

* gst/elements/gstidentity.c (gst_identity_proxy_getcaps): Getcaps
implementation for identity.

* gst/gststructure.h
* gst/gststructure.c
(gst_caps_structure_fixate_field_nearest_double):
(gst_caps_structure_fixate_field_nearest_int): Moved from
gstcaps.c because we need the private IS_MUTABLE macro.
(IS_MUTABLE): New macro, determines if a
structure is mutable or not.
(gst_structure_free): Don't allow free while holding a pointer to
a parent's refcount.
(gst_structure_set_name): Check for writability.
(gst_structure_id_set_value): Same.
(gst_structure_set_value): Same.
(gst_structure_set_valist): Same.
(gst_structure_remove_field): Same.
(gst_structure_remove_all_fields): Same.
(gst_structure_map_in_place): New routine, like _foreach but
allows the function to mutate the value (via a non-const
prototype). Check for writability.
(gst_structure_foreach): Redefine to only take non-mutating
functions.

* gst/gstcaps.c (IS_WRITABLE): New macro, returns TRUE if the caps
are writable.
(gst_caps_copy): Add some docs about mutability, etc.
(_gst_caps_free): Set the parent refcount pointer on structures to
NULL before freeing them.
(gst_caps_ref): Document.
(gst_caps_make_writable): Doc.
(gst_caps_make_writable): Changed to make_writable, get_writable
sounds too much like retrieving a property.
(gst_caps_copy_1): Removed, not very useful.
(gst_caps_ref_by_count): Removed, no need to have something GLib
doesn't.
(gst_caps_copy_conditional): Ref instead of copying.
(gst_static_caps_get): Retain a reference to the returned caps, so
that the static caps will remain immutable.
(gst_caps_remove_and_get_structure): Set the parent refcount to
NULL when removing the structure.
(gst_caps_append): Fix to work with structure parent refcounts.
Check for writability.
(gst_caps_append_structure): Check for writability, work with
parent refcounts.
(gst_caps_remove_structure): Check for writability.
(gst_caps_set_simple): Check for writability.
(gst_caps_set_simple_valist): Check for writability.
(gst_caps_is_fixed_foreach): Update for non-mutating foreach.
(gst_structure_is_equal_foreach): Same.
(gst_caps_structure_intersect_field): Same.
(gst_caps_structure_subtract_field): Same. Make static.
(gst_caps_normalize_foreach): Same.
(gst_caps_structure_figure_out_union): Same.
(gst_caps_switch_structures): New static function, switches out
structures inside a caps, taking care of parent_refcount setting.

* gst/gstpad.c (gst_pad_get_allowed_caps): Remove the restriction
on only src pads, wim von masterhack claims it was bogus.

* testsuite/caps/Makefile.am
* testsuite/caps/app_fixate.c: Removed app_fixate test, things are
done a bit differently in THREADED.
2005-02-10 19:40:23 +00:00
..
.gitignore keep this up to date, since I seem to be the only one who cares about not missing files on commits 2004-07-21 21:37:31 +00:00
gstaggregator.c gst/: s/gst_pad_new/&_from_template/ register pad templates in the base_init function add static pad template definit... 2004-08-17 14:11:23 +00:00
gstaggregator.h docs/gst/gstreamer-sections.txt: More doc hacking. 2004-03-26 03:46:16 +00:00
gstbufferstore.c gst/elements/gstbufferstore.c: don't try to make subbuffers bigger than they can be. (fixes #159970) 2004-11-30 23:45:36 +00:00
gstbufferstore.h Revert again, this time without post-commit reindent hooks to put back the indentation :-) 2004-03-15 14:43:35 +00:00
gstelements.c commiting wim's preliminary threaded work to a branch 2004-12-08 17:40:37 +00:00
gstfakesink.c Correctly distribute clock/scheduler to elements 2004-12-20 16:07:05 +00:00
gstfakesink.h docs/gst/Makefile.am: Disable a bunch of headers from being scanned 2004-03-30 07:36:19 +00:00
gstfakesrc.c Removed schedulers and compat stuff. 2005-01-26 10:56:09 +00:00
gstfakesrc.h commiting wim's preliminary threaded work to a branch 2004-12-08 17:40:37 +00:00
gstfdsink.c gst/: s/gst_pad_new/&_from_template/ register pad templates in the base_init function add static pad template definit... 2004-08-17 14:11:23 +00:00
gstfdsink.h Revert again, this time without post-commit reindent hooks to put back the indentation :-) 2004-03-15 14:43:35 +00:00
gstfdsrc.c gst/: s/gst_pad_new/&_from_template/ register pad templates in the base_init function add static pad template definit... 2004-08-17 14:11:23 +00:00
gstfdsrc.h Revert again, this time without post-commit reindent hooks to put back the indentation :-) 2004-03-15 14:43:35 +00:00
gstfilesink.c docs/pwg/: Typo fixes. 2004-11-06 10:28:07 +00:00
gstfilesink.h Revert again, this time without post-commit reindent hooks to put back the indentation :-) 2004-03-15 14:43:35 +00:00
gstfilesrc.c gst/elements/gstfilesrc.*: Fix filesrc push based scheduling. 2005-01-19 13:55:10 +00:00
gstfilesrc.h gst/elements/gstfilesrc.*: Fix filesrc push based scheduling. 2005-01-19 13:55:10 +00:00
gstidentity.c testsuite/caps/value_serialize.c: merge from HEAD. 2005-02-10 19:40:23 +00:00
gstidentity.h gst/elements/: Added datarate properties to limit the datarate. 2004-09-03 11:40:35 +00:00
gstmd5sink.c - removing some trailing commas in enums to please C90 only compilers (AIX, Forte, ...) ('should' fix #143290) should... 2004-05-28 05:01:05 +00:00
gstmd5sink.h docs/gst/gstreamer-sections.txt: More doc hacking. 2004-03-26 03:46:16 +00:00
gstmultifilesrc.c gst/: s/gst_pad_new/&_from_template/ register pad templates in the base_init function add static pad template definit... 2004-08-17 14:11:23 +00:00
gstmultifilesrc.h gst/elements/gstmultifilesrc.*: Added newmedia property so it generates newmedia events between each file when proper... 2004-07-23 13:09:27 +00:00
gstpipefilter.c gst/: s/gst_pad_new/&_from_template/ register pad templates in the base_init function add static pad template definit... 2004-08-17 14:11:23 +00:00
gstpipefilter.h Revert again, this time without post-commit reindent hooks to put back the indentation :-) 2004-03-15 14:43:35 +00:00
gstqueue.c Bus cleanups. 2005-01-11 14:58:12 +00:00
gstqueue.h Bus cleanups. 2005-01-11 14:58:12 +00:00
gstshaper.c - removing some trailing commas in enums to please C90 only compilers (AIX, Forte, ...) ('should' fix #143290) should... 2004-05-28 05:01:05 +00:00
gstshaper.h docs/gst/gstreamer-sections.txt: More doc hacking. 2004-03-26 03:46:16 +00:00
gststatistics.c gst/: s/gst_pad_new/&_from_template/ register pad templates in the base_init function add static pad template definit... 2004-08-17 14:11:23 +00:00
gststatistics.h Revert again, this time without post-commit reindent hooks to put back the indentation :-) 2004-03-15 14:43:35 +00:00
gsttee.c gst/: s/gst_pad_new/&_from_template/ register pad templates in the base_init function add static pad template definit... 2004-08-17 14:11:23 +00:00
gsttee.h docs/gst/gstreamer-sections.txt: More doc hacking. 2004-03-26 03:46:16 +00:00
gsttypefindelement.c gst/elements/: Subtract size of internally stored data from position queries. 2004-11-08 15:45:31 +00:00
gsttypefindelement.h fix typefind discont handling, #153657 2004-09-26 17:48:05 +00:00
Makefile.am commiting wim's preliminary threaded work to a branch 2004-12-08 17:40:37 +00:00