From 9b1bffb45607c0cdfc80d1c856d331789789cd34 Mon Sep 17 00:00:00 2001 From: Jens Granseuer Date: Wed, 3 Jan 2007 16:41:10 +0000 Subject: Fix build with gcc-2.x (declare variables at the beginning of a block etc.). Fixes #391971. Original commit message from CVS: Patch by: Jens Granseuer * ext/xvid/gstxvidenc.c: (gst_xvidenc_encode), (gst_xvidenc_get_property): * gst/filter/gstbpwsinc.c: (bpwsinc_transform_ip): * gst/filter/gstfilter.c: (plugin_init): * gst/filter/gstiir.c: (iir_transform_ip): * gst/filter/gstlpwsinc.c: (lpwsinc_transform_ip): * gst/modplug/gstmodplug.cc: * gst/nuvdemux/gstnuvdemux.c: (gst_nuv_demux_header_load), (gst_nuv_demux_stream_extend_header): Fix build with gcc-2.x (declare variables at the beginning of a block etc.). Fixes #391971. --- ext/xvid/gstxvidenc.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'ext') diff --git a/ext/xvid/gstxvidenc.c b/ext/xvid/gstxvidenc.c index fb030f60..e2cf4aa4 100644 --- a/ext/xvid/gstxvidenc.c +++ b/ext/xvid/gstxvidenc.c @@ -806,8 +806,10 @@ gst_xvidenc_encode (GstXvidEnc * xvidenc, GstBuffer * buf, gst_buffer_unref (outbuf); return NULL; } else if (ret > 0) { /* make sub-buffer */ + GstBuffer *sub; + GST_DEBUG_OBJECT (xvidenc, "xvid produced output of size %d", ret); - GstBuffer *sub = gst_buffer_create_sub (outbuf, 0, ret); + sub = gst_buffer_create_sub (outbuf, 0, ret); /* parent no longer needed, will go away with child buffer */ gst_buffer_unref (outbuf); @@ -1059,10 +1061,10 @@ gst_xvidenc_get_property (GObject * object, guint prop_id, GValue * value, GParamSpec * pspec) { GstXvidEnc *xvidenc; + guint offset; g_return_if_fail (GST_IS_XVIDENC (object)); xvidenc = GST_XVIDENC (object); - guint offset; if (prop_id > xvidenc_prop_count) { G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); -- cgit v1.2.1