mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-30 05:31:15 +00:00
debug
Original commit message from CVS: debug
This commit is contained in:
parent
a074393f26
commit
0b685fac13
1 changed files with 8 additions and 5 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue