GstElement: Add a more flexible way to get request pads.
authorEdward Hervey <edward.hervey@collabora.co.uk>
Mon, 20 Dec 2010 12:30:43 +0000 (13:30 +0100)
committerEdward Hervey <edward.hervey@collabora.co.uk>
Wed, 5 Jan 2011 18:46:47 +0000 (19:46 +0100)
commit04ebbc9f5ad71322b7df91229f1a43e6bc218aca
tree2e87c137a615358f089baa982d63b4703aed3fd2
parentc57934d7bfa78fcffc9f1cb591e0c59829a21070
GstElement: Add a more flexible way to get request pads.

The new request_new_pad_full vmethod provides an additional caps field,
which allows elements to take better decision process.

Also, add a gst_element_request_pad() function to allow developers to be
able to specify which pad template they want a pad of.

Convert gstutils to use that new method instead of the old one when more
efficient.

This is useful for being able to request pads in a more flexible way,
especially when the element can provide pads whose caps depend on
runtime configuration and therefore can't provide pre-registered
pad templates.

API: GstElement::request_new_pad_full
API: gst_element_request_pad

https://bugzilla.gnome.org/show_bug.cgi?id=637300
docs/gst/gstreamer-sections.txt
gst/gstelement.c
gst/gstelement.h
gst/gstutils.c
win32/common/libgstreamer.def