From 57b2ee4bb58e2783618d4ccb385dbf782c4ba3b1 Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Sat, 12 Nov 2005 13:31:56 +0000 Subject: [PATCH] ext/jpeg/gstjpegdec.c: Only GST_DEBUG() information on the valid components. Original commit message from CVS: * ext/jpeg/gstjpegdec.c: (gst_jpeg_dec_chain): Only GST_DEBUG() information on the valid components. --- ChangeLog | 5 +++++ ext/jpeg/gstjpegdec.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 3ca8f3cbe5..8d352246b1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-11-12 Edward Hervey + + * ext/jpeg/gstjpegdec.c: (gst_jpeg_dec_chain): + Only GST_DEBUG() information on the valid components. + 2005-11-11 Thomas Vander Stichele * configure.ac: back to HEAD diff --git a/ext/jpeg/gstjpegdec.c b/ext/jpeg/gstjpegdec.c index e1a456f7df..ab54772d51 100644 --- a/ext/jpeg/gstjpegdec.c +++ b/ext/jpeg/gstjpegdec.c @@ -761,7 +761,7 @@ gst_jpeg_dec_chain (GstPad * pad, GstBuffer * buf) GST_DEBUG ("num_components=%d, comps_in_scan=%d\n", dec->cinfo.num_components, dec->cinfo.comps_in_scan); - for (i = 0; i < 3; ++i) { + for (i = 0; i < dec->cinfo.num_components; ++i) { GST_DEBUG ("[%d] h_samp_factor=%d, v_samp_factor=%d\n", i, dec->cinfo.cur_comp_info[i]->h_samp_factor, dec->cinfo.cur_comp_info[i]->v_samp_factor);