ext/jpeg/gstjpegdec.c: Only GST_DEBUG() information on the valid components.
authorEdward Hervey <bilboed@bilboed.com>
Sat, 12 Nov 2005 13:31:56 +0000 (13:31 +0000)
committerEdward Hervey <bilboed@bilboed.com>
Sat, 12 Nov 2005 13:31:56 +0000 (13:31 +0000)
Original commit message from CVS:
* ext/jpeg/gstjpegdec.c: (gst_jpeg_dec_chain):
Only GST_DEBUG() information on the valid components.

ChangeLog
ext/jpeg/gstjpegdec.c

index 3ca8f3c..8d35224 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-11-12  Edward Hervey  <edward@fluendo.com>
+
+       * ext/jpeg/gstjpegdec.c: (gst_jpeg_dec_chain): 
+       Only GST_DEBUG() information on the valid components.
+
 2005-11-11  Thomas Vander Stichele  <thomas at apestaart dot org>
 
        * configure.ac: back to HEAD
index e1a456f..ab54772 100644 (file)
@@ -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);