jpegdec: add debug to notify when skipping to jpeg header

This commit is contained in:
Mark Nauwelaerts 2010-12-06 18:17:24 +01:00
parent 04fae48d1d
commit 9ee2e9ede5

View file

@ -368,8 +368,11 @@ gst_jpeg_dec_ensure_header (GstJpegDec * dec)
return FALSE;
}
GST_DEBUG_OBJECT (dec, "Found JPEG header");
if (offset > 0) {
GST_LOG_OBJECT (dec, "Skipping %u bytes.", offset);
gst_adapter_flush (dec->adapter, offset);
}
GST_DEBUG_OBJECT (dec, "Found JPEG header");
return TRUE;
}