gstreamer010, remove some deprecated glib calls and make the compiler in C++11 mode happy.
parent
f955e9c88a
commit
76e75fd220
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue