From f447d9a6d99a1839c25d24250346da7357ba4950 Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Thu, 29 Dec 2005 14:31:49 +0000 Subject: [PATCH] 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. --- ChangeLog | 6 ++++++ gst/playback/gstdecodebin.c | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index e1a28b7..2a7f287 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2005-12-29 Michael Smith + + * 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 * tests/check/Makefile.am: diff --git a/gst/playback/gstdecodebin.c b/gst/playback/gstdecodebin.c index fbbdac9..2b43109 100644 --- a/gst/playback/gstdecodebin.c +++ b/gst/playback/gstdecodebin.c @@ -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); -- 2.7.4