mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
gst/: initialize gst_controller before using
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
This commit is contained in:
parent
0bdf850dbe
commit
b5398e7a9d
3 changed files with 14 additions and 1 deletions
|
@ -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>
|
2006-01-31 Jan Schmidt <thaytan@mad.scientist.com>
|
||||||
|
|
||||||
* tests/check/pipelines/theoraenc.c:
|
* tests/check/pipelines/theoraenc.c:
|
||||||
|
|
|
@ -506,7 +506,7 @@ gst_audio_test_src_create_sine_table (GstAudioTestSrc * src, gint16 * samples)
|
||||||
if (src->accumulator >= M_PI_M2)
|
if (src->accumulator >= M_PI_M2)
|
||||||
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
|
static gboolean
|
||||||
plugin_init (GstPlugin * plugin)
|
plugin_init (GstPlugin * plugin)
|
||||||
{
|
{
|
||||||
|
/* initialize gst controller library */
|
||||||
|
gst_controller_init (NULL, NULL);
|
||||||
|
|
||||||
return gst_element_register (plugin, "audiotestsrc",
|
return gst_element_register (plugin, "audiotestsrc",
|
||||||
GST_RANK_NONE, GST_TYPE_AUDIO_TEST_SRC);
|
GST_RANK_NONE, GST_TYPE_AUDIO_TEST_SRC);
|
||||||
}
|
}
|
||||||
|
|
|
@ -498,6 +498,9 @@ volume_get_property (GObject * object, guint prop_id, GValue * value,
|
||||||
static gboolean
|
static gboolean
|
||||||
plugin_init (GstPlugin * plugin)
|
plugin_init (GstPlugin * plugin)
|
||||||
{
|
{
|
||||||
|
/* initialize gst controller library */
|
||||||
|
gst_controller_init (NULL, NULL);
|
||||||
|
|
||||||
return gst_element_register (plugin, "volume", GST_RANK_NONE,
|
return gst_element_register (plugin, "volume", GST_RANK_NONE,
|
||||||
GST_TYPE_VOLUME);
|
GST_TYPE_VOLUME);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue