summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: efebf98)
raw | patch | inline | side by side (parent: efebf98)
author | Thomas Vander Stichele <thomas@apestaart.org> | |
Tue, 31 Dec 2002 10:52:09 +0000 (10:52 +0000) | ||
committer | Thomas Vander Stichele <thomas@apestaart.org> | |
Tue, 31 Dec 2002 10:52:09 +0000 (10:52 +0000) |
Original commit message from CVS:
revert usability test
revert usability test
gst/gstelement.c | patch | blob | history |
diff --git a/gst/gstelement.c b/gst/gstelement.c
index abccd0536f978e524526947138b8d13bbef28bf8..0af88581da1ce84b089d08ff87b2d784e51cf52a 100644 (file)
--- a/gst/gstelement.c
+++ b/gst/gstelement.c
gst_element_get_random_pad (GstElement *element, GstPadDirection dir)
{
GList *pads = element->pads;
+ GST_DEBUG (GST_CAT_ELEMENT_PADS, "getting a random pad");
while (pads) {
GstPad *pad = GST_PAD_CAST (pads->data);
-
+
+ GST_DEBUG (GST_CAT_ELEMENT_PADS, "checking pad %s:%s",
+ GST_DEBUG_PAD_NAME (pad));
+
if (GST_PAD_DIRECTION (pad) == dir) {
+ /*
+ * FIXME: for some reason a ghosted pad doesn't get it's flag
+ * set, which makes this check fail for them.
if (GST_PAD_IS_USABLE (pad)) {
+ */
return pad;
+ /*
}
+ else
+ GST_DEBUG (GST_CAT_ELEMENT_PADS, "pad %s:%s is not usable",
+ GST_DEBUG_PAD_NAME (pad));
+ */
}
+ else
+ GST_DEBUG (GST_CAT_ELEMENT_PADS, "pad %s:%s is in wrong direction",
+ GST_DEBUG_PAD_NAME (pad));
pads = g_list_next (pads);
}
return NULL;