API: add gst_plugin_register_static() and deprecate
authorTim-Philipp Müller <tim@centricular.net>
Wed, 9 Jan 2008 18:23:39 +0000 (18:23 +0000)
committerTim-Philipp Müller <tim@centricular.net>
Wed, 9 Jan 2008 18:23:39 +0000 (18:23 +0000)
commit4a3f163052582f47c2a13a6daa22c2be4cb660de
tree68bf243dd009a6ae96f71fbb44013eadb4b11532
parentd5d69b94754e63af275e35fc7df48732824dff81
API: add gst_plugin_register_static() and deprecate

Original commit message from CVS:
* docs/gst/gstreamer-sections.txt:
* gst/gst.c: (init_post):
* gst/gstplugin.c: (_gst_plugin_register_static),
(gst_plugin_register_static), (_gst_plugin_initialize),
(gst_plugin_register_func):
* gst/gstplugin.h: (GST_PLUGIN_DEFINE_STATIC):
API: add gst_plugin_register_static() and deprecate
GST_PLUGIN_DEFINE_STATIC, since it's not portable
(#498924).
Also, in _gst_plugin_register_static(), make sure to call
g_thread_init() before calling GLib functions such as
g_list_append() if we're not initialised yet, since that
may lead to random crashes with older GSlice/GLib versions.
* tests/check/gst/gstplugin.c:
Adapt unit test to above changes.
ChangeLog
docs/gst/gstreamer-sections.txt
gst/gst.c
gst/gstplugin.c
gst/gstplugin.h
tests/check/gst/gstplugin.c