* Boston, MA 02111-1307, USA.
*/
-/**
+/*
* TODO:
* - handle automatic removal of unneeded elements
* - make the spider handle and send events (esp. new media)
padlist = gst_element_get_pad_list (GST_ELEMENT (spider));
while (padlist)
{
- GstPad *otherpad = (GstPad *) GST_GPAD_REALPAD (padlist->data);
- GstSpiderIdentity *peer = (GstSpiderIdentity *) GST_PAD_PARENT (otherpad);
+ GstPad *otherpad;
+ GstSpiderIdentity *peer;
+
+ g_assert (GST_IS_PAD (padlist->data));
+ otherpad = (GstPad *) GST_GPAD_REALPAD (padlist->data);
+ peer = (GstSpiderIdentity *) GST_PAD_PARENT (otherpad);
/* we only want to connect to the other side */
if (dir != GST_PAD_DIRECTION (otherpad))
{
/* FIXME: make that if go away and work anyway */
if (srcpad == conn->sink->src)
{
+ g_assert (GST_RPAD_PEER (conn->sink->sink) != NULL);
plugpath = gst_autoplug_sp (gst_pad_get_caps ((GstPad *) GST_RPAD_PEER (conn->sink->sink)), gst_pad_get_caps (conn->src->sink), spider->factories);
} else {
plugpath = gst_autoplug_sp (gst_pad_get_caps (srcpad), gst_pad_get_caps (conn->src->sink), spider->factories);
extern GstElementDetails gst_spider_details;
-/**
+/*
* Theory of operation:
* When connecting a sink to a source, GstSpiderConnections are used to keep track
* of the current status of the connection. sink -> src is the path we intend to
g_print ("ERROR: %s: %s\n", GST_OBJECT_NAME (orig), error);
}
-/**
+/*
* Test program for the autoplugger.
* Uses new API extensions (2002-01-28), too.
*