Compiler warning fixes.
g_thread_init is automatically called since 2.32 (and deprecated since 2.35). g_type_init is automatically called since 2.36 and will be deprecated in the future.
This commit is contained in:
@@ -793,10 +793,13 @@ MediaPluginGStreamer010::startup()
|
||||
// only do global GStreamer initialization once.
|
||||
if (!mDoneInit)
|
||||
{
|
||||
g_thread_init(NULL);
|
||||
|
||||
#if !GLIB_CHECK_VERSION(2, 36, 0)
|
||||
#if !GLIB_CHECK_VERSION(2, 32, 0)
|
||||
if (!g_thread_supported()) g_thread_init(NULL);
|
||||
#endif
|
||||
// Init the glib type system - we need it.
|
||||
g_type_init();
|
||||
#endif
|
||||
set_gst_plugin_path();
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user