gst/playback/gstdecodebin.c: Fix non-C89 variable declaration not at the start of...
authorMichael Smith <msmith@xiph.org>
Thu, 29 Dec 2005 14:31:49 +0000 (14:31 +0000)
committerMichael Smith <msmith@xiph.org>
Thu, 29 Dec 2005 14:31:49 +0000 (14:31 +0000)
Original commit message from CVS:
* gst/playback/gstdecodebin.c: (new_pad):
Fix non-C89 variable declaration not at the start of a block. Should
help some compilers.

ChangeLog
gst/playback/gstdecodebin.c

index e1a28b7..2a7f287 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2005-12-29  Michael Smith  <msmith@fluendo.com>
+
+       * gst/playback/gstdecodebin.c: (new_pad):
+         Fix non-C89 variable declaration not at the start of a block. Should
+         help some compilers.
+
 2005-12-29  Tim-Philipp Müller  <tim at centricular dot net>
 
        * tests/check/Makefile.am:
index fbbdac9..2b43109 100644 (file)
@@ -973,6 +973,7 @@ new_pad (GstElement * element, GstPad * pad, GstDynamic * dynamic)
 {
   GstDecodeBin *decode_bin = dynamic->decode_bin;
   GstCaps *caps;
+  gboolean more;
 
   GST_OBJECT_LOCK (decode_bin);
   if (decode_bin->shutting_down)
@@ -984,7 +985,7 @@ new_pad (GstElement * element, GstPad * pad, GstDynamic * dynamic)
     goto shutting_down2;
 
   /* see if any more pending dynamic connections exist */
-  gboolean more = gst_decode_bin_is_dynamic (decode_bin);
+  more = gst_decode_bin_is_dynamic (decode_bin);
 
   caps = gst_pad_get_caps (pad);
   close_pad_link (element, pad, caps, decode_bin, more);