diff options
Diffstat (limited to 'indra/media_plugins')
| -rw-r--r-- | indra/media_plugins/gstreamer010/CMakeLists.txt | 7 | ||||
| -rw-r--r-- | indra/media_plugins/gstreamer010/llmediaimplgstreamervidplug.cpp | 22 | 
2 files changed, 11 insertions, 18 deletions
| diff --git a/indra/media_plugins/gstreamer010/CMakeLists.txt b/indra/media_plugins/gstreamer010/CMakeLists.txt index 9f0ff654fc..a5127ae5f4 100644 --- a/indra/media_plugins/gstreamer010/CMakeLists.txt +++ b/indra/media_plugins/gstreamer010/CMakeLists.txt @@ -42,13 +42,6 @@ set(media_plugin_gstreamer010_HEADER_FILES      llmediaimplgstreamertriviallogging.h      ) -if (${CXX_VERSION_NUMBER} MATCHES "4[23456789].") -    # Work around a bad interaction between broken gstreamer headers and -    # g++ >= 4.2's increased strictness. -    set_source_files_properties(llmediaimplgstreamervidplug.cpp PROPERTIES -                                COMPILE_FLAGS -Wno-write-strings) -endif (${CXX_VERSION_NUMBER} MATCHES "4[23456789].") -  add_library(media_plugin_gstreamer010      SHARED      ${media_plugin_gstreamer010_SOURCE_FILES} diff --git a/indra/media_plugins/gstreamer010/llmediaimplgstreamervidplug.cpp b/indra/media_plugins/gstreamer010/llmediaimplgstreamervidplug.cpp index c4b563f0b8..cdb7f4faeb 100644 --- a/indra/media_plugins/gstreamer010/llmediaimplgstreamervidplug.cpp +++ b/indra/media_plugins/gstreamer010/llmediaimplgstreamervidplug.cpp @@ -48,7 +48,7 @@ GST_DEBUG_CATEGORY_STATIC (gst_slvideo_debug);  #define SLV_ALLCAPS GST_VIDEO_CAPS_RGBx SLV_SIZECAPS  static GstStaticPadTemplate sink_factory = GST_STATIC_PAD_TEMPLATE ( -    "sink", +    (gchar*)"sink",      GST_PAD_SINK,      GST_PAD_ALWAYS,      GST_STATIC_CAPS (SLV_ALLCAPS) @@ -508,18 +508,18 @@ plugin_init (GstPlugin * plugin)     some g++ versions buggily avoid __attribute__((constructor)) functions -     so we provide an explicit plugin init function.   */ +#define PACKAGE (gchar*)"packagehack" +// this macro quietly refers to PACKAGE internally +GST_PLUGIN_DEFINE (GST_VERSION_MAJOR, +		   GST_VERSION_MINOR, +		   (gchar*)"private-slvideoplugin",  +		   (gchar*)"SL Video sink plugin", +		   plugin_init, (gchar*)"1.0", (gchar*)"LGPL", +		   (gchar*)"Second Life", +		   (gchar*)"http://www.secondlife.com/"); +#undef PACKAGE  void gst_slvideo_init_class (void)  { -#define PACKAGE "packagehack" -	// this macro quietly refers to PACKAGE internally -	static GST_PLUGIN_DEFINE (GST_VERSION_MAJOR, -				  GST_VERSION_MINOR, -				  "private-slvideoplugin",  -				  "SL Video sink plugin", -				  plugin_init, "1.0", "LGPL", -				  "Second Life", -				  "http://www.secondlife.com/"); -#undef PACKAGE  	ll_gst_plugin_register_static (&gst_plugin_desc);  	DEBUGMSG("CLASS INIT");  } | 
