ext/jpeg/gstjpegdec.c: Make jpegdec quiet on MJPEG decoding

Original commit message from CVS:
* 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
This commit is contained in:
Stéphane Loeuillet 2005-01-10 22:00:15 +00:00
parent 256fb48cf7
commit 71b765c44b
2 changed files with 23 additions and 0 deletions

View file

@ -1,3 +1,11 @@
2005-01-10 Stephane LOEUILLET <stephane.loeuillet@tiscali.fr>
* 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 <rbultje@ronald.bitfreak.net>
* ext/theora/theoradec.c: (theora_dec_chain):

View file

@ -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;