gst/gstdebugutils.c: Reflow code to fix uninitialized variable warning.
authorStefan Kost <ensonic@users.sourceforge.net>
Mon, 22 Oct 2007 11:10:28 +0000 (11:10 +0000)
committerStefan Kost <ensonic@users.sourceforge.net>
Mon, 22 Oct 2007 11:10:28 +0000 (11:10 +0000)
Original commit message from CVS:
* gst/gstdebugutils.c:
Reflow code to fix uninitialized variable warning.

ChangeLog
gst/gstdebugutils.c

index d79d8b9..2c88ec9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-10-22  Stefan Kost  <ensonic@users.sf.net>
+
+       * gst/gstdebugutils.c:
+         Reflow code to fix uninitialized variable warning.
+
 2007-10-22  Edgard Lima  <edgard.lima@indt.org.br>
 
        * 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  <tim at centricular dot net>
 
        * gst/gstbus.c:
index 3c25eb2..c6fac6a 100644 (file)
@@ -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 = "?";
                         }