summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim.muller@collabora.co.uk>2009-09-29 00:01:59 +0100
committerTim-Philipp Müller <tim.muller@collabora.co.uk>2009-09-29 00:01:59 +0100
commit477cb58640f1bd07317f1b54148338b75cb2b1fa (patch)
treeafe883a76ec47304f30091662017474efa92e356
parent3f263edbbfa8d85bb659367cb9bbc547265f8de0 (diff)
jpegdec: fix 'unused variable' compiler warning when compiling with GST_DISABLE_GST_DEBUG
-rw-r--r--ext/jpeg/gstjpegdec.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/ext/jpeg/gstjpegdec.c b/ext/jpeg/gstjpegdec.c
index 0f12be765..bb3961d9e 100644
--- a/ext/jpeg/gstjpegdec.c
+++ b/ext/jpeg/gstjpegdec.c
@@ -853,13 +853,12 @@ gst_jpeg_dec_chain (GstPad * pad, GstBuffer * buf)
GstBuffer *outbuf;
guchar *data, *outdata;
guchar *base[3], *last[3];
guint img_len, outsize;
gint width, height;
gint r_h, r_v;
- gint i;
guint code, hdr_ok;
GstClockTime timestamp, duration;
dec = GST_JPEG_DEC (GST_PAD_PARENT (pad));
timestamp = GST_BUFFER_TIMESTAMP (buf);
@@ -948,16 +947,20 @@ gst_jpeg_dec_chain (GstPad * pad, GstBuffer * buf)
GST_LOG_OBJECT (dec, "r_h = %d, r_v = %d", r_h, r_v);
GST_LOG_OBJECT (dec, "num_components=%d, comps_in_scan=%d",
dec->cinfo.num_components, dec->cinfo.comps_in_scan);
#ifndef GST_DISABLE_GST_DEBUG
- for (i = 0; i < dec->cinfo.comps_in_scan; ++i) {
- GST_LOG_OBJECT (dec, "[%d] h_samp_factor=%d, v_samp_factor=%d", i,
- dec->cinfo.cur_comp_info[i]->h_samp_factor,
- dec->cinfo.cur_comp_info[i]->v_samp_factor);
+ {
+ gint i;
+
+ for (i = 0; i < dec->cinfo.comps_in_scan; ++i) {
+ GST_LOG_OBJECT (dec, "[%d] h_samp_factor=%d, v_samp_factor=%d", i,
+ dec->cinfo.cur_comp_info[i]->h_samp_factor,
+ dec->cinfo.cur_comp_info[i]->v_samp_factor);
+ }
}
#endif
/* prepare for raw output */
dec->cinfo.do_fancy_upsampling = FALSE;
dec->cinfo.do_block_smoothing = FALSE;