mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 12:49:40 +00:00
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).
This commit is contained in:
parent
28901daf9a
commit
0e7e8daf12
2 changed files with 8 additions and 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>
|
2006-03-03 Edward Hervey <edward@fluendo.com>
|
||||||
|
|
||||||
* gst/qtdemux/qtdemux.c: (qtdemux_parse), (qtdemux_parse_trak):
|
* gst/qtdemux/qtdemux.c: (qtdemux_parse), (qtdemux_parse_trak):
|
||||||
|
|
|
@ -197,6 +197,7 @@ gst_xviddec_chain (GstPad * pad, GstBuffer * buf)
|
||||||
GstBuffer *outbuf = NULL;
|
GstBuffer *outbuf = NULL;
|
||||||
xvid_dec_frame_t xframe;
|
xvid_dec_frame_t xframe;
|
||||||
GstFlowReturn ret = GST_FLOW_OK;
|
GstFlowReturn ret = GST_FLOW_OK;
|
||||||
|
guint bufsize;
|
||||||
int error = 0;
|
int error = 0;
|
||||||
|
|
||||||
if (xviddec->handle == NULL) {
|
if (xviddec->handle == NULL) {
|
||||||
|
@ -204,7 +205,7 @@ gst_xviddec_chain (GstPad * pad, GstBuffer * buf)
|
||||||
goto not_negotiated;
|
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);
|
outbuf = gst_buffer_new_and_alloc (bufsize);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue