Original commit message from CVS:
debug
This commit is contained in:
Thomas Vander Stichele 2004-07-09 08:45:18 +00:00
parent a074393f26
commit 0b685fac13

View file

@ -969,7 +969,7 @@ gst_bin_get_by_interface (GstBin * bin, GType interface)
* @bin: bin to find elements in
* @interface: interface to be implemented by interface
*
* Looks for all element inside the bin that implements the given
* Looks for all elements inside the bin that implements the given
* interface. You can safely cast all returned elements to the given interface.
* The function recurses bins inside bins. You need to free the list using
* g_list_free() after use.
@ -986,8 +986,11 @@ gst_bin_get_all_by_interface (GstBin * bin, GType interface)
walk = bin->children;
while (walk) {
if (G_TYPE_CHECK_INSTANCE_TYPE (walk->data, interface))
if (G_TYPE_CHECK_INSTANCE_TYPE (walk->data, interface)) {
GST_DEBUG_OBJECT (bin, "element %s implements requested interface",
GST_ELEMENT_NAME (GST_ELEMENT (walk->data)));
ret = g_list_prepend (ret, walk->data);
}
if (GST_IS_BIN (walk->data)) {
ret = g_list_concat (ret,
gst_bin_get_all_by_interface (GST_BIN (walk->data), interface));