diff --git a/ChangeLog b/ChangeLog index d79d8b9291..2c88ec92fd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-10-22 Stefan Kost + + * gst/gstdebugutils.c: + Reflow code to fix uninitialized variable warning. + 2007-10-22 Edgard Lima * gst/gstcaps.c: (gst_caps_to_string), @@ -21,7 +26,6 @@ API: add gst_value_set_structure() API: add gst_value_get_structure() - 2007-10-19 Tim-Philipp Müller * gst/gstbus.c: diff --git a/gst/gstdebugutils.c b/gst/gstdebugutils.c index 3c25eb2108..c6fac6a341 100644 --- a/gst/gstdebugutils.c +++ b/gst/gstdebugutils.c @@ -250,11 +250,10 @@ debug_dump_element (GstBin * bin, GstDebugGraphDetails details, FILE * out, if ((caps = gst_pad_get_negotiated_caps (pad))) { free_caps = TRUE; } else { - if ((caps = + free_caps = FALSE; + if (!(caps = (GstCaps *) gst_pad_get_pad_template_caps (pad))) { - free_caps = FALSE; - } else { /* this should not happen */ media = "?"; }