From 489c8c30903df02022b72a3198297ef771410e12 Mon Sep 17 00:00:00 2001 From: Nemurimasu Neiro Date: Mon, 30 Aug 2010 22:05:07 +0000 Subject: fix GStreamer on Mac OS --- linden/indra/llmedia/llmediaimplgstreamer.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'linden/indra') diff --git a/linden/indra/llmedia/llmediaimplgstreamer.cpp b/linden/indra/llmedia/llmediaimplgstreamer.cpp index 259f903..2bfe4ea 100644 --- a/linden/indra/llmedia/llmediaimplgstreamer.cpp +++ b/linden/indra/llmedia/llmediaimplgstreamer.cpp @@ -188,6 +188,9 @@ bool LLMediaImplGStreamer::startup (LLMediaManagerData* init_data) // Protect against GStreamer resetting the locale, yuck. static std::string saved_locale; saved_locale = setlocale(LC_ALL, NULL); +#if LL_DARWIN + setenv("GST_PLUGIN_SYSTEM_PATH", "lib/gstreamer-plugins", TRUE); +#endif if (0 == gst_init_check(NULL, NULL, NULL)) { LL_WARNS("MediaImpl") << "GStreamer library failed to initialize and load standard plugins." << LL_ENDL; -- cgit v1.1