From 939a1da72c97b261b023cd219adf834e54c80a80 Mon Sep 17 00:00:00 2001 From: Sebastian Dröge Date: Mon, 8 Dec 2008 18:24:21 +0000 Subject: ext/dv/: Really call dv_init() exactly one time, not one time for the demuxer and one time for the decoder. Original commit message from CVS: * ext/dv/gstdv.c: (plugin_init): * ext/dv/gstdvdec.c: (gst_dvdec_class_init): * ext/dv/gstdvdemux.c: (gst_dvdemux_class_init): Really call dv_init() exactly one time, not one time for the demuxer and one time for the decoder. --- ext/dv/gstdv.c | 2 ++ ext/dv/gstdvdec.c | 3 --- ext/dv/gstdvdemux.c | 3 --- 3 files changed, 2 insertions(+), 6 deletions(-) (limited to 'ext/dv') diff --git a/ext/dv/gstdv.c b/ext/dv/gstdv.c index 7daadfae..970c5d15 100644 --- a/ext/dv/gstdv.c +++ b/ext/dv/gstdv.c @@ -28,6 +28,8 @@ static gboolean plugin_init (GstPlugin * plugin) { + dv_init (0, 0); + if (!gst_element_register (plugin, "dvdemux", GST_RANK_PRIMARY, gst_dvdemux_get_type ())) return FALSE; diff --git a/ext/dv/gstdvdec.c b/ext/dv/gstdvdec.c index 575fe0ab..958aa518 100644 --- a/ext/dv/gstdvdec.c +++ b/ext/dv/gstdvdec.c @@ -213,9 +213,6 @@ gst_dvdec_class_init (GstDVDecClass * klass) 1, G_MAXINT, DV_DEFAULT_DECODE_NTH, G_PARAM_READWRITE)); gstelement_class->change_state = gst_dvdec_change_state; - - /* table initialization, only do once */ - dv_init (0, 0); } static void diff --git a/ext/dv/gstdvdemux.c b/ext/dv/gstdvdemux.c index a123b188..0233c1f6 100644 --- a/ext/dv/gstdvdemux.c +++ b/ext/dv/gstdvdemux.c @@ -208,9 +208,6 @@ gst_dvdemux_class_init (GstDVDemuxClass * klass) gstelement_class->change_state = GST_DEBUG_FUNCPTR (gst_dvdemux_change_state); gstelement_class->send_event = GST_DEBUG_FUNCPTR (gst_dvdemux_send_event); - - /* table initialization, only do once */ - dv_init (0, 0); } static void -- cgit