ext/dv/: Really call dv_init() exactly one time, not one time for the demuxer and...
authorSebastian Dröge <slomo@circular-chaos.org>
Mon, 8 Dec 2008 18:24:21 +0000 (18:24 +0000)
committerSebastian Dröge <slomo@circular-chaos.org>
Mon, 8 Dec 2008 18:24:21 +0000 (18:24 +0000)
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.

ChangeLog
ext/dv/gstdv.c
ext/dv/gstdvdec.c
ext/dv/gstdvdemux.c

index c3ccac7..0fef830 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2008-12-08  Sebastian Dröge  <sebastian.droege@collabora.co.uk>
+
+       * 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.
+
 2008-12-08  Wim Taymans  <wim.taymans@collabora.co.uk>
 
        * gst/rtp/gstrtpmp4apay.c: (gst_rtp_mp4a_pay_handle_buffer):
index 7daadfa..970c5d1 100644 (file)
@@ -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;
index 575fe0a..958aa51 100644 (file)
@@ -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
index a123b18..0233c1f 100644 (file)
@@ -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