summaryrefslogtreecommitdiffstats
path: root/ext
diff options
context:
space:
mode:
authorJens Granseuer <jensgr@gmx.net>2007-01-03 16:41:10 +0000
committerTim-Philipp Müller <tim@centricular.net>2007-01-03 16:41:10 +0000
commit9b1bffb45607c0cdfc80d1c856d331789789cd34 (patch)
treef1ffdcd24a18e07ee8d15bbfe4deabafd152cf61 /ext
parent2d4cbb090c60ed78e14c1a6e226c678570f4200a (diff)
downloadgst-plugins-bad-9b1bffb45607c0cdfc80d1c856d331789789cd34.tar.gz
gst-plugins-bad-9b1bffb45607c0cdfc80d1c856d331789789cd34.tar.bz2
gst-plugins-bad-9b1bffb45607c0cdfc80d1c856d331789789cd34.zip
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 <jensgr at gmx net> * 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.
Diffstat (limited to 'ext')
-rw-r--r--ext/xvid/gstxvidenc.c6
1 files changed, 4 insertions, 2 deletions
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);