gstreamer010, remove some deprecated glib calls and make the compiler in C++11 mode happy.

master
Nicky 2018-04-06 12:52:51 +02:00
parent f955e9c88a
commit 76e75fd220
2 changed files with 2 additions and 6 deletions

View File

@ -37,7 +37,7 @@ if(NOT ADDRESS_SIZE EQUAL 32)
if(WINDOWS)
##add_definitions(/FIXED:NO)
else(WINDOWS) # not windows therefore gcc LINUX and DARWIN
add_definitions(-fPIC)
add_definitions(-fPIC -Wno-literal-suffix)
endif(WINDOWS)
endif(NOT ADDRESS_SIZE EQUAL 32)

View File

@ -76,7 +76,7 @@ private:
bool play(double rate);
bool getTimePos(double &sec_out);
static const double MIN_LOOP_SEC = 1.0F;
static constexpr double MIN_LOOP_SEC = 1.0F;
bool mIsLooping;
@ -798,10 +798,6 @@ MediaPluginGStreamer010::startup()
// only do global GStreamer initialization once.
if (!mDoneInit)
{
g_thread_init(NULL);
// Init the glib type system - we need it.
g_type_init();
// Get symbols!
#if LL_DARWIN