mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-06-26 09:50:39 +00:00
revert usability test
Original commit message from CVS: revert usability test
This commit is contained in:
parent
efebf989ff
commit
f87c7929d4
|
@ -1762,14 +1762,30 @@ static GstPad*
|
||||||
gst_element_get_random_pad (GstElement *element, GstPadDirection dir)
|
gst_element_get_random_pad (GstElement *element, GstPadDirection dir)
|
||||||
{
|
{
|
||||||
GList *pads = element->pads;
|
GList *pads = element->pads;
|
||||||
|
GST_DEBUG (GST_CAT_ELEMENT_PADS, "getting a random pad");
|
||||||
while (pads) {
|
while (pads) {
|
||||||
GstPad *pad = GST_PAD_CAST (pads->data);
|
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) {
|
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)) {
|
if (GST_PAD_IS_USABLE (pad)) {
|
||||||
|
*/
|
||||||
return 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);
|
pads = g_list_next (pads);
|
||||||
}
|
}
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
Loading…
Reference in a new issue