diff --git a/ChangeLog b/ChangeLog index aab4ee2a39..422c3df53f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2005-01-10 Stephane LOEUILLET + + * ext/jpeg/gstjpegdec.c: (gst_jpegdec_my_output_message), + (gst_jpegdec_my_emit_message), (gst_jpegdec_init): + Make jpegdec quiet on MJPEG decoding + * gst/asfdemux/README: + Fix mimetypes for MJPEG and H263 + 2005-01-10 Ronald S. Bultje * ext/theora/theoradec.c: (theora_dec_chain): diff --git a/ext/jpeg/gstjpegdec.c b/ext/jpeg/gstjpegdec.c index 03b9d651e8..bfc5881fba 100644 --- a/ext/jpeg/gstjpegdec.c +++ b/ext/jpeg/gstjpegdec.c @@ -158,6 +158,18 @@ gst_jpegdec_term_source (j_decompress_ptr cinfo) GST_DEBUG ("term_source"); } +METHODDEF (void) +gst_jpegdec_my_output_message (j_common_ptr cinfo) +{ + // Do nothing +} + +METHODDEF (void) +gst_jpegdec_my_emit_message (j_common_ptr cinfo, int msg_level) +{ + // Do nothing +} + static void gst_jpegdec_init (GstJpegDec * jpegdec) { @@ -193,6 +205,9 @@ gst_jpegdec_init (GstJpegDec * jpegdec) memset (&jpegdec->cinfo, 0, sizeof (jpegdec->cinfo)); memset (&jpegdec->jerr, 0, sizeof (jpegdec->jerr)); jpegdec->cinfo.err = jpeg_std_error (&jpegdec->jerr); + jpegdec->cinfo.err->output_message = gst_jpegdec_my_output_message; + jpegdec->cinfo.err->emit_message = gst_jpegdec_my_emit_message; + jpeg_create_decompress (&jpegdec->cinfo); jpegdec->jsrc.init_source = gst_jpegdec_init_source;