mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
gst/gstdebugutils.c: Improve handling ghost/proxy pads.
Original commit message from CVS: * gst/gstdebugutils.c: Improve handling ghost/proxy pads.
This commit is contained in:
parent
847e64d8ee
commit
4da82e9b62
2 changed files with 52 additions and 41 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2008-03-31 Stefan Kost <ensonic@users.sf.net>
|
||||||
|
|
||||||
|
* gst/gstdebugutils.c:
|
||||||
|
Improve handling ghost/proxy pads.
|
||||||
|
|
||||||
2008-03-27 Stefan Kost <ensonic@users.sf.net>
|
2008-03-27 Stefan Kost <ensonic@users.sf.net>
|
||||||
|
|
||||||
* docs/gst/gstreamer-sections.txt:
|
* docs/gst/gstreamer-sections.txt:
|
||||||
|
|
|
@ -134,7 +134,7 @@ debug_dump_element (GstBin * bin, GstDebugGraphDetails details, FILE * out,
|
||||||
GstIterator *element_iter, *pad_iter;
|
GstIterator *element_iter, *pad_iter;
|
||||||
gboolean elements_done, pads_done;
|
gboolean elements_done, pads_done;
|
||||||
GstElement *element, *peer_element, *target_element;
|
GstElement *element, *peer_element, *target_element;
|
||||||
GstPad *pad, *peer_pad, *target_pad;
|
GstPad *pad, *peer_pad, *target_pad, *tmp_pad;
|
||||||
GstPadDirection dir;
|
GstPadDirection dir;
|
||||||
GstCaps *caps;
|
GstCaps *caps;
|
||||||
GstStructure *structure;
|
GstStructure *structure;
|
||||||
|
@ -317,8 +317,9 @@ debug_dump_element (GstBin * bin, GstDebugGraphDetails details, FILE * out,
|
||||||
}
|
}
|
||||||
|
|
||||||
if (GST_IS_GHOST_PAD (pad)) {
|
if (GST_IS_GHOST_PAD (pad)) {
|
||||||
if ((target_pad =
|
if ((tmp_pad =
|
||||||
gst_ghost_pad_get_target (GST_GHOST_PAD (pad)))) {
|
gst_ghost_pad_get_target (GST_GHOST_PAD (pad)))) {
|
||||||
|
if ((target_pad = gst_pad_get_peer (tmp_pad))) {
|
||||||
target_pad_name =
|
target_pad_name =
|
||||||
debug_dump_make_object_name (GST_OBJECT
|
debug_dump_make_object_name (GST_OBJECT
|
||||||
(target_pad));
|
(target_pad));
|
||||||
|
@ -331,9 +332,9 @@ debug_dump_element (GstBin * bin, GstDebugGraphDetails details, FILE * out,
|
||||||
target_element_name = "";
|
target_element_name = "";
|
||||||
}
|
}
|
||||||
/* src ghostpad relationship */
|
/* src ghostpad relationship */
|
||||||
fprintf (out, "%s%s_%s -> %s_%s [style=dashed]\n", spc,
|
fprintf (out, "%s%s_%s -> %s_%s [style=dashed]\n",
|
||||||
target_element_name, target_pad_name, element_name,
|
spc, target_element_name, target_pad_name,
|
||||||
pad_name);
|
element_name, pad_name);
|
||||||
|
|
||||||
g_free (target_pad_name);
|
g_free (target_pad_name);
|
||||||
if (target_element) {
|
if (target_element) {
|
||||||
|
@ -342,11 +343,14 @@ debug_dump_element (GstBin * bin, GstDebugGraphDetails details, FILE * out,
|
||||||
}
|
}
|
||||||
gst_object_unref (target_pad);
|
gst_object_unref (target_pad);
|
||||||
}
|
}
|
||||||
|
gst_object_unref (tmp_pad);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (GST_IS_GHOST_PAD (peer_pad)) {
|
if (GST_IS_GHOST_PAD (peer_pad)) {
|
||||||
if ((target_pad =
|
if ((tmp_pad =
|
||||||
gst_ghost_pad_get_target (GST_GHOST_PAD
|
gst_ghost_pad_get_target (GST_GHOST_PAD
|
||||||
(peer_pad)))) {
|
(peer_pad)))) {
|
||||||
|
if ((target_pad = gst_pad_get_peer (tmp_pad))) {
|
||||||
target_pad_name =
|
target_pad_name =
|
||||||
debug_dump_make_object_name (GST_OBJECT
|
debug_dump_make_object_name (GST_OBJECT
|
||||||
(target_pad));
|
(target_pad));
|
||||||
|
@ -359,8 +363,8 @@ debug_dump_element (GstBin * bin, GstDebugGraphDetails details, FILE * out,
|
||||||
target_element_name = "";
|
target_element_name = "";
|
||||||
}
|
}
|
||||||
/* sink ghostpad relationship */
|
/* sink ghostpad relationship */
|
||||||
fprintf (out, "%s%s_%s -> %s_%s [style=dashed]\n", spc,
|
fprintf (out, "%s%s_%s -> %s_%s [style=dashed]\n",
|
||||||
peer_element_name, peer_pad_name,
|
spc, peer_element_name, peer_pad_name,
|
||||||
target_element_name, target_pad_name);
|
target_element_name, target_pad_name);
|
||||||
|
|
||||||
g_free (target_pad_name);
|
g_free (target_pad_name);
|
||||||
|
@ -370,6 +374,8 @@ debug_dump_element (GstBin * bin, GstDebugGraphDetails details, FILE * out,
|
||||||
}
|
}
|
||||||
gst_object_unref (target_pad);
|
gst_object_unref (target_pad);
|
||||||
}
|
}
|
||||||
|
gst_object_unref (tmp_pad);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
g_free (pad_name);
|
g_free (pad_name);
|
||||||
|
|
Loading…
Reference in a new issue