summaryrefslogtreecommitdiffstats
path: root/ext/dv/gstdvdec.c
diff options
context:
space:
mode:
authorAndy Wingo <wingo@pobox.com>2006-01-27 12:17:56 +0000
committerAndy Wingo <wingo@pobox.com>2006-01-27 12:17:56 +0000
commitf45b92e3f01130a3d6f013487726f319216b204c (patch)
treec1ee7d42d9a1c141acaae6a8e0984991c28cebf9 /ext/dv/gstdvdec.c
parent6b789d2dd197c127d579673ea9ba4faaf60accf3 (diff)
ext/dv/: Call dv_set_error_log (dv_decoder_t *, NULL); after dv_decoder_new to not have warings flooding stderr. this...
Original commit message from CVS: 2006-01-27 Jan Gerber <j@bootlab.org> Reviewed by: Andy Wingo <wingo@pobox.com> * ext/dv/gstdvdec.c (gst_dvdec_change_state): * ext/dv/gstdvdemux.c (gst_dvdemux_change_state): Call dv_set_error_log (dv_decoder_t *, NULL); after dv_decoder_new to not have warings flooding stderr. this is the suggested way also used in dvgrab and kino. (#328336)
Diffstat (limited to 'ext/dv/gstdvdec.c')
-rw-r--r--ext/dv/gstdvdec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/dv/gstdvdec.c b/ext/dv/gstdvdec.c
index fb355d0e..2b52a67f 100644
--- a/ext/dv/gstdvdec.c
+++ b/ext/dv/gstdvdec.c
@@ -332,6 +332,7 @@ gst_dvdec_change_state (GstElement * element, GstStateChange transition)
dvdec->decoder =
dv_decoder_new (0, dvdec->clamp_luma, dvdec->clamp_chroma);
dvdec->decoder->quality = qualities[dvdec->quality];
+ dv_set_error_log (dvdec->decoder, NULL);
/*
* Enable this function call when libdv2 0.100 or higher is more
* common