[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gstreamer-cvs
Subject:    [gst-cvs] gst-plugins-good: jpegdec: fix 'unused variable' compiler
From:       tpm () kemper ! freedesktop ! org (Tim Mueller)
Date:       2009-09-28 23:39:28
Message-ID: 20090928233928.B329C10051 () kemper ! freedesktop ! org
[Download RAW message or body]

Module: gst-plugins-good
Branch: master
Commit: 477cb58640f1bd07317f1b54148338b75cb2b1fa
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-good/commit/?id=477cb58640f1bd07317f1b54148338b75cb2b1fa


Author: Tim-Philipp Müller <tim.muller@collabora.co.uk>
Date:   Tue Sep 29 00:01:59 2009 +0100

jpegdec: fix 'unused variable' compiler warning when compiling with \
GST_DISABLE_GST_DEBUG

---

 ext/jpeg/gstjpegdec.c |   13 ++++++++-----
 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
 



------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf

_______________________________________________
gstreamer-cvs mailing list
gstreamer-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gstreamer-cvs


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic