From e20cb9265c897be611c385f7f972783fd89344e5 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 31 Dec 2002 15:37:36 +0000 Subject: [PATCH] IS_USABLE is only for PLAYING elements Original commit message from CVS: IS_USABLE is only for PLAYING elements --- gst/gstelement.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gst/gstelement.c b/gst/gstelement.c index 6289a4c175..18015048d3 100644 --- a/gst/gstelement.c +++ b/gst/gstelement.c @@ -1768,11 +1768,11 @@ gst_element_get_random_pad (GstElement *element, GstPadDirection dir) GST_DEBUG_PAD_NAME (pad)); if (GST_PAD_DIRECTION (pad) == dir) { - if (GST_PAD_IS_USABLE (pad)) { + if (GST_PAD_IS_CONNECTED (pad)) { return pad; } else { - GST_DEBUG (GST_CAT_ELEMENT_PADS, "pad %s:%s is not usable", + GST_DEBUG (GST_CAT_ELEMENT_PADS, "pad %s:%s is not connected", GST_DEBUG_PAD_NAME (pad)); } } @@ -1793,7 +1793,7 @@ gst_element_get_random_pad (GstElement *element, GstPadDirection dir) * Get an array of event masks from the element. * If the element doesn't * implement an event masks function, the query will be forwarded - * to a random sink pad. + * to a random connected sink pad. * * Returns: An array of #GstEventMask elements. */