mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-30 04:00:37 +00:00
jpegdec: fix 'unused variable' compiler warning when compiling with GST_DISABLE_GST_DEBUG
This commit is contained in:
parent
3f263edbbf
commit
477cb58640
1 changed files with 8 additions and 5 deletions
|
@ -856,7 +856,6 @@ gst_jpeg_dec_chain (GstPad * pad, GstBuffer * buf)
|
||||||
guint img_len, outsize;
|
guint img_len, outsize;
|
||||||
gint width, height;
|
gint width, height;
|
||||||
gint r_h, r_v;
|
gint r_h, r_v;
|
||||||
gint i;
|
|
||||||
guint code, hdr_ok;
|
guint code, hdr_ok;
|
||||||
GstClockTime timestamp, duration;
|
GstClockTime timestamp, duration;
|
||||||
|
|
||||||
|
@ -951,11 +950,15 @@ gst_jpeg_dec_chain (GstPad * pad, GstBuffer * buf)
|
||||||
dec->cinfo.num_components, dec->cinfo.comps_in_scan);
|
dec->cinfo.num_components, dec->cinfo.comps_in_scan);
|
||||||
|
|
||||||
#ifndef GST_DISABLE_GST_DEBUG
|
#ifndef GST_DISABLE_GST_DEBUG
|
||||||
|
{
|
||||||
|
gint i;
|
||||||
|
|
||||||
for (i = 0; i < dec->cinfo.comps_in_scan; ++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,
|
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]->h_samp_factor,
|
||||||
dec->cinfo.cur_comp_info[i]->v_samp_factor);
|
dec->cinfo.cur_comp_info[i]->v_samp_factor);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* prepare for raw output */
|
/* prepare for raw output */
|
||||||
|
|
Loading…
Reference in a new issue