mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 15:27:07 +00:00
gst/gstpad.c: Improve debugging of default pad dispatcher and query functions.
Original commit message from CVS: * gst/gstpad.c: (gst_pad_get_internal_links_default), (gst_pad_dispatcher): Improve debugging of default pad dispatcher and query functions.
This commit is contained in:
parent
023e1b458a
commit
a02edf4d61
2 changed files with 22 additions and 5 deletions
|
@ -1,3 +1,9 @@
|
|||
2007-02-15 Wim Taymans <wim@fluendo.com>
|
||||
|
||||
* gst/gstpad.c: (gst_pad_get_internal_links_default),
|
||||
(gst_pad_dispatcher):
|
||||
Improve debugging of default pad dispatcher and query functions.
|
||||
|
||||
2007-02-15 Wim Taymans <wim@fluendo.com>
|
||||
|
||||
* docs/gst/gstreamer-sections.txt:
|
||||
|
|
21
gst/gstpad.c
21
gst/gstpad.c
|
@ -2829,7 +2829,7 @@ gst_pad_get_internal_links_default (GstPad * pad)
|
|||
|
||||
parent = GST_PAD_PARENT (pad);
|
||||
if (!parent)
|
||||
return NULL;
|
||||
goto no_parent;
|
||||
|
||||
parent_pads = parent->pads;
|
||||
|
||||
|
@ -2837,13 +2837,19 @@ gst_pad_get_internal_links_default (GstPad * pad)
|
|||
GstPad *parent_pad = GST_PAD_CAST (parent_pads->data);
|
||||
|
||||
if (parent_pad->direction != direction) {
|
||||
GST_DEBUG_OBJECT (pad, "adding pad %s:%s",
|
||||
GST_DEBUG_PAD_NAME (parent_pad));
|
||||
res = g_list_prepend (res, parent_pad);
|
||||
}
|
||||
|
||||
parent_pads = g_list_next (parent_pads);
|
||||
}
|
||||
|
||||
return res;
|
||||
|
||||
no_parent:
|
||||
{
|
||||
GST_DEBUG_OBJECT (pad, "no parent");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -2976,17 +2982,22 @@ gst_pad_dispatcher (GstPad * pad, GstPadDispatcherFunction dispatch,
|
|||
|
||||
while (int_pads) {
|
||||
GstPad *int_pad = GST_PAD_CAST (int_pads->data);
|
||||
GstPad *int_peer = GST_PAD_PEER (int_pad);
|
||||
GstPad *int_peer = gst_pad_get_peer (int_pad);
|
||||
|
||||
if (int_peer) {
|
||||
GST_DEBUG_OBJECT (int_pad, "dispatching to peer %s:%s",
|
||||
GST_DEBUG_PAD_NAME (int_peer));
|
||||
res = dispatch (int_peer, data);
|
||||
gst_object_unref (int_peer);
|
||||
if (res)
|
||||
break;
|
||||
} else {
|
||||
GST_DEBUG_OBJECT (int_pad, "no peer");
|
||||
}
|
||||
int_pads = g_list_next (int_pads);
|
||||
}
|
||||
|
||||
g_list_free (orig);
|
||||
GST_DEBUG_OBJECT (pad, "done, result %d", res);
|
||||
|
||||
return res;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue