diff options
author | Jens Granseuer <jensgr@gmx.net> | 2006-03-03 18:10:12 +0000 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.net> | 2006-03-03 18:10:12 +0000 |
commit | 0e7e8daf120929fb247ce6d59c1b5776b6e34871 (patch) | |
tree | 1683f0184f29b80b7a638704217b7dcd5c9dfa41 | |
parent | 28901daf9a9cf2722a3fc4ea5e56439fda6153b6 (diff) | |
download | gst-plugins-bad-0e7e8daf120929fb247ce6d59c1b5776b6e34871.tar.gz gst-plugins-bad-0e7e8daf120929fb247ce6d59c1b5776b6e34871.tar.bz2 gst-plugins-bad-0e7e8daf120929fb247ce6d59c1b5776b6e34871.zip |
ext/xvid/gstxviddec.c: Declare variable at the beginning of the block and make gcc-2.9x
Original commit message from CVS:
* ext/xvid/gstxviddec.c: (gst_xviddec_chain):
Declare variable at the beginning of the block and make gcc-2.9x
happy (fixes #333283; patch by: Jens Granseuer).
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | ext/xvid/gstxviddec.c | 3 |
2 files changed, 8 insertions, 1 deletions
@@ -1,3 +1,9 @@ +2006-03-03 Tim-Philipp Müller <tim at centricular dot net> + + * ext/xvid/gstxviddec.c: (gst_xviddec_chain): + Declare variable at the beginning of the block and make gcc-2.9x + happy (fixes #333283; patch by: Jens Granseuer). + 2006-03-03 Edward Hervey <edward@fluendo.com> * gst/qtdemux/qtdemux.c: (qtdemux_parse), (qtdemux_parse_trak): diff --git a/ext/xvid/gstxviddec.c b/ext/xvid/gstxviddec.c index e108afc6..94da4e9b 100644 --- a/ext/xvid/gstxviddec.c +++ b/ext/xvid/gstxviddec.c @@ -197,6 +197,7 @@ gst_xviddec_chain (GstPad * pad, GstBuffer * buf) GstBuffer *outbuf = NULL; xvid_dec_frame_t xframe; GstFlowReturn ret = GST_FLOW_OK; + guint bufsize; int error = 0; if (xviddec->handle == NULL) { @@ -204,7 +205,7 @@ gst_xviddec_chain (GstPad * pad, GstBuffer * buf) goto not_negotiated; } - guint bufsize = (xviddec->width * xviddec->height * xviddec->bpp / 8); + bufsize = (xviddec->width * xviddec->height * xviddec->bpp / 8); outbuf = gst_buffer_new_and_alloc (bufsize); |