2007-02-15 Wim Taymans <wim@fluendo.com>
+ * gst/gstpad.c: (gst_pad_get_internal_links_default),
+ (gst_pad_dispatcher):
+ Improve debugging of default pad dispatcher and query functions.
+
+2007-02-15 Wim Taymans <wim@fluendo.com>
+
* docs/gst/gstreamer-sections.txt:
Remove old unused method.
parent = GST_PAD_PARENT (pad);
if (!parent)
- return NULL;
+ goto no_parent;
parent_pads = parent->pads;
GstPad *parent_pad = GST_PAD_CAST (parent_pads->data);
if (parent_pad->direction != direction) {
+ GST_DEBUG_OBJECT (pad, "adding pad %s:%s",
+ GST_DEBUG_PAD_NAME (parent_pad));
res = g_list_prepend (res, parent_pad);
}
-
parent_pads = g_list_next (parent_pads);
}
-
return res;
+
+no_parent:
+ {
+ GST_DEBUG_OBJECT (pad, "no parent");
+ return NULL;
+ }
}
/**
while (int_pads) {
GstPad *int_pad = GST_PAD_CAST (int_pads->data);
- GstPad *int_peer = GST_PAD_PEER (int_pad);
+ GstPad *int_peer = gst_pad_get_peer (int_pad);
if (int_peer) {
+ GST_DEBUG_OBJECT (int_pad, "dispatching to peer %s:%s",
+ GST_DEBUG_PAD_NAME (int_peer));
res = dispatch (int_peer, data);
+ gst_object_unref (int_peer);
if (res)
break;
+ } else {
+ GST_DEBUG_OBJECT (int_pad, "no peer");
}
int_pads = g_list_next (int_pads);
}
-
g_list_free (orig);
+ GST_DEBUG_OBJECT (pad, "done, result %d", res);
return res;
}