summaryrefslogtreecommitdiff
authorTim-Philipp Müller <tim.muller@collabora.co.uk>2009-09-28 23:01:59 (GMT)
committer Tim-Philipp Müller <tim.muller@collabora.co.uk>2009-09-28 23:01:59 (GMT)
commit477cb58640f1bd07317f1b54148338b75cb2b1fa (patch) (side-by-side diff)
treeafe883a76ec47304f30091662017474efa92e356
parent3f263edbbfa8d85bb659367cb9bbc547265f8de0 (diff)
downloadgst-plugins-good-477cb58640f1bd07317f1b54148338b75cb2b1fa.zip
gst-plugins-good-477cb58640f1bd07317f1b54148338b75cb2b1fa.tar.gz
jpegdec: fix 'unused variable' compiler warning when compiling with GST_DISABLE_GST_DEBUG
Diffstat (more/less context) (ignore whitespace changes)
-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 0f12be7..bb3961d 100644
--- a/ext/jpeg/gstjpegdec.c
+++ b/ext/jpeg/gstjpegdec.c
@@ -856,7 +856,6 @@ gst_jpeg_dec_chain (GstPad * pad, GstBuffer * buf)
guint img_len, outsize;
gint width, height;
gint r_h, r_v;
- gint i;
guint code, hdr_ok;
GstClockTime timestamp, duration;
@@ -951,10 +950,14 @@ gst_jpeg_dec_chain (GstPad * pad, GstBuffer * buf)
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