gstreamer/plugins/elements
Andy Wingo 4b908e33e0 gst/gstutils.c: RPAD fixes all around.
Original commit message from CVS:
2005-06-08  Andy Wingo  <wingo@pobox.com>

* gst/gstutils.c: RPAD fixes all around.
(gst_element_link_pads): Refcounting fixes.

* tools/gst-inspect.c:
* tools/gst-xmlinspect.c:
* parse/grammar.y:
* gst/base/gsttypefindhelper.c:
* gst/base/gstbasesink.c:
* gst/gstqueue.c: RPAD fixes.

* gst/gstghostpad.h:
* gst/gstghostpad.c: New ghost pad implementation as full proxy
pads. The tricky thing is they provide both source and sink
interfaces, since they proxy the internal pad for the external
pad, and vice versa. Implement with lower-level ProxyPad objects,
with the interior proxy pad as a child of the exterior ghost pad.
Should write a doc on this.

* gst/gstpad.h: s/RPAD/PAD/, s/RealPad/Pad/.
(gst_pad_set_name, gst_pad_set_parent): Macros removed, use
gst_object API.

* gst/gstpad.c: Big changes. No more stub base GstPad, now all
pads are real pads. No ghost pads in this file. Not documenting
the myriad s/RPAD/PAD/ and REALIZE fixes.
(gst_pad_class_init): Add properties for "direction" and
"template". Both are construct-only, so they can't change during
the life of the pad. Fixes properly deriving from GstPad.
(gst_pad_custom_new, gst_pad_custom_new_from_template): Gone. For
derived objects, just set properties when creating the objects via
g_object_new.
(gst_pad_get_parent): Implement as a function, return NULL if the
parent is not an element.
(gst_pad_get_real_parent, gst_pad_add_ghost_pad)
(gst_pad_remove_ghost_pad, gst_pad_realize): Removed.

* gst/gstobject.c (gst_object_class_init): Make name a construct
property. Don't set it in the object init.

* gst/gstelement.c (gst_element_add_pad): Don't allow adding pads
with UNKNOWN direction.
(gst_element_add_ghost_pad): Remove non-orthogonal API. Replace
with gst_element_add_pad (e, gst_ghost_pad_new (name, pad)).
(gst_element_remove_pad): Remove ghost-pad special cases.
(gst_element_pads_activate): Remove rpad cruft.

* gst/gstbin.c (gst_bin_change_state): Use gst_pad_get_parent to
catch the pad's-parent-not-an-element case.

* gst/gst.h: Include gstghostpad.h.

* gst/gst.c (init_post): No more real, ghost pads.

* gst/Makefile.am: Add gstghostpad.[ch].

* check/Makefile.am:
* check/gst/gstbin.c:
* check/gst/gstghostpad.c (test_ghost_pads): Check that linking
into a bin creates ghost pads, and that the refcounts are right.
Partly moved from gstbin.c.
2005-06-08 22:16:27 +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
gstbufferstore.c check/Makefile.am: remove GstData checks 2005-05-16 20:21:55 +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
gstcapsfilter.c gst/elements/gstcapsfilter.c: Free existing caps if the capsfilter changes. Add a FIXME about setting those caps on t... 2005-06-02 15:45:16 +00:00
gstelements.c gst/elements/gstelements.c: Don't include headers that were just removed. 2005-05-15 23:18:40 +00:00
gstfakesink.c gst/gstminiobject.c (gst_value_mini_object_collect): Use gst_value_set_mini_object so as to add a ref on the object (... 2005-05-27 09:27:35 +00:00
gstfakesink.h Added state change code. 2005-03-28 14:54:33 +00:00
gstfakesrc.c check/Makefile.am: remove GstData checks 2005-05-16 20:21:55 +00:00
gstfakesrc.h Added typefind helper. 2005-04-12 10:52:55 +00:00
gstfdsink.c Remove threadsafe properties. Fix elements because GObject complains when installing a property before declaring a se... 2005-03-08 17:42:29 +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 Remove threadsafe properties. Fix elements because GObject complains when installing a property before declaring a se... 2005-03-08 17:42:29 +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 Remove old query functions. Ported old code. 2005-05-09 10:53:13 +00:00
gstfilesink.h gst/: Added object to help in making collect pad based elements. 2005-05-05 09:31:59 +00:00
gstfilesrc.c check/Makefile.am: remove GstData checks 2005-05-16 20:21:55 +00:00
gstfilesrc.h gst/: More work on the generic source base class, implement seeking, query. 2005-04-06 17:30:48 +00:00
gstidentity.c gst/elements/gstidentity.c: Protect last_message property as it is accessed from multiple threads. 2005-05-30 16:28:41 +00:00
gstidentity.h gst/: Simplify pad activation. 2005-03-29 16:18:12 +00:00
gstqueue.c gst/gstutils.c: RPAD fixes all around. 2005-06-08 22:16:27 +00:00
gstqueue.h gst/: Fix state changes for non sinks. We now change sinks, then elements with unconnected srcpads, then the rest. 2005-05-25 19:33:39 +00:00
gsttee.c gst/: Implement gst_pad_pause/start/stop_task(), take STREAM lock in task function. 2005-05-25 11:50:11 +00:00
gsttee.h Next big merge. 2005-03-21 17:34:02 +00:00
gsttypefindelement.c gst/elements/gsttypefindelement.c (do_pull_typefind): Query the file size, pass it on to the type find helper. 2005-06-02 11:12:34 +00:00
gsttypefindelement.h happify buildbot 2005-05-25 16:09:34 +00:00
Makefile.am gst/elements/Makefile.am: Remove some elements that don't need to be in the core (or even exist at all). 2005-05-15 23:16:29 +00:00