mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 02:31:03 +00:00
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.
This commit is contained in:
parent
096be28890
commit
fa57a52f69
2 changed files with 14 additions and 14 deletions
|
@ -256,6 +256,13 @@ bpwsinc_transform_ip (GstBaseTransform * base, GstBuffer * outbuf)
|
|||
GstBPWSinc *this = GST_BPWSINC (base);
|
||||
GstClockTime timestamp;
|
||||
|
||||
gfloat *src;
|
||||
gfloat *input;
|
||||
int residue_samples;
|
||||
gint input_samples;
|
||||
gint total_samples;
|
||||
int i, j;
|
||||
|
||||
/* don't process data in passthrough-mode */
|
||||
if (gst_base_transform_is_passthrough (base))
|
||||
return GST_FLOW_OK;
|
||||
|
@ -266,13 +273,6 @@ bpwsinc_transform_ip (GstBaseTransform * base, GstBuffer * outbuf)
|
|||
if (GST_CLOCK_TIME_IS_VALID (timestamp))
|
||||
gst_object_sync_values (G_OBJECT (this), timestamp);
|
||||
|
||||
gfloat *src;
|
||||
gfloat *input;
|
||||
int residue_samples;
|
||||
gint input_samples;
|
||||
gint total_samples;
|
||||
int i, j;
|
||||
|
||||
/* FIXME: out of laziness, we copy the left-over bit from last buffer
|
||||
* together with the incoming buffer to a new buffer to make the loop
|
||||
* easy; this could be a lot more optimized though
|
||||
|
|
|
@ -212,6 +212,13 @@ lpwsinc_transform_ip (GstBaseTransform * base, GstBuffer * outbuf)
|
|||
GstLPWSinc *this = GST_LPWSINC (base);
|
||||
GstClockTime timestamp;
|
||||
|
||||
gfloat *src;
|
||||
gfloat *input;
|
||||
int residue_samples;
|
||||
gint input_samples;
|
||||
gint total_samples;
|
||||
int i, j;
|
||||
|
||||
/* don't process data in passthrough-mode */
|
||||
if (gst_base_transform_is_passthrough (base))
|
||||
return GST_FLOW_OK;
|
||||
|
@ -222,13 +229,6 @@ lpwsinc_transform_ip (GstBaseTransform * base, GstBuffer * outbuf)
|
|||
if (GST_CLOCK_TIME_IS_VALID (timestamp))
|
||||
gst_object_sync_values (G_OBJECT (this), timestamp);
|
||||
|
||||
gfloat *src;
|
||||
gfloat *input;
|
||||
int residue_samples;
|
||||
gint input_samples;
|
||||
gint total_samples;
|
||||
int i, j;
|
||||
|
||||
/* FIXME: out of laziness, we copy the left-over bit from last buffer
|
||||
* together with the incoming buffer to a new buffer to make the loop
|
||||
* easy; this could be a lot more optimized though
|
||||
|
|
Loading…
Reference in a new issue