gst/: initialize gst_controller before using
authorStefan Kost <ensonic@users.sourceforge.net>
Tue, 31 Jan 2006 17:19:09 +0000 (17:19 +0000)
committerStefan Kost <ensonic@users.sourceforge.net>
Tue, 31 Jan 2006 17:19:09 +0000 (17:19 +0000)
Original commit message from CVS:
* gst/audiotestsrc/gstaudiotestsrc.c:
(gst_audio_test_src_create_sine_table), (plugin_init):
* gst/volume/gstvolume.c: (plugin_init):
initialize gst_controller before using

ChangeLog
gst/audiotestsrc/gstaudiotestsrc.c
gst/volume/gstvolume.c

index b7cbd8f..ac285f0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2006-01-31  Stefan Kost  <ensonic@users.sf.net>
+
+       * gst/audiotestsrc/gstaudiotestsrc.c:
+       (gst_audio_test_src_create_sine_table), (plugin_init):
+       * gst/volume/gstvolume.c: (plugin_init):
+         initialize gst_controller before using
+
 2006-01-31  Jan Schmidt  <thaytan@mad.scientist.com>
 
        * tests/check/pipelines/theoraenc.c:
index ad3815f..ba610a6 100644 (file)
@@ -506,7 +506,7 @@ gst_audio_test_src_create_sine_table (GstAudioTestSrc * src, gint16 * samples)
     if (src->accumulator >= M_PI_M2)
       src->accumulator -= M_PI_M2;
 
-    samples[i] = (gint16) src->wave_table[(gint) (src->accumulator * scl)];
+    samples[i] = src->wave_table[(gint) (src->accumulator * scl)];
   }
 }
 
@@ -754,6 +754,9 @@ gst_audio_test_src_get_property (GObject * object, guint prop_id,
 static gboolean
 plugin_init (GstPlugin * plugin)
 {
+  /* initialize gst controller library */
+  gst_controller_init (NULL, NULL);
+
   return gst_element_register (plugin, "audiotestsrc",
       GST_RANK_NONE, GST_TYPE_AUDIO_TEST_SRC);
 }
index 78e683c..3982901 100644 (file)
@@ -498,6 +498,9 @@ volume_get_property (GObject * object, guint prop_id, GValue * value,
 static gboolean
 plugin_init (GstPlugin * plugin)
 {
+  /* initialize gst controller library */
+  gst_controller_init (NULL, NULL);
+
   return gst_element_register (plugin, "volume", GST_RANK_NONE,
       GST_TYPE_VOLUME);
 }