gst/playback/gstdecodebin.c: Fix non-C89 variable declaration not at the start of a block. Should help some compilers.

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.
This commit is contained in:
Michael Smith 2005-12-29 14:31:49 +00:00
parent 097f448b19
commit f447d9a6d9
2 changed files with 8 additions and 1 deletions

View file

@ -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:

View 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);