summaryrefslogtreecommitdiffstats
path: root/gst/filter/gstfilter.c
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 /gst/filter/gstfilter.c
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 'gst/filter/gstfilter.c')
-rw-r--r--gst/filter/gstfilter.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gst/filter/gstfilter.c b/gst/filter/gstfilter.c
index 572d6475..36c37ec4 100644
--- a/gst/filter/gstfilter.c
+++ b/gst/filter/gstfilter.c
@@ -46,11 +46,11 @@ static struct _elements_entry _elements[] = {
static gboolean
plugin_init (GstPlugin * plugin)
{
+ gint i = 0;
+
/* initialize gst controller library */
gst_controller_init (NULL, NULL);
- gint i = 0;
-
while (_elements[i].name) {
if (!gst_element_register (plugin, _elements[i].name, GST_RANK_NONE,
_elements[i].type ()))