diff options
author | Jacek Antonelli | 2009-03-28 18:53:52 -0500 |
---|---|---|
committer | Jacek Antonelli | 2009-03-28 19:32:11 -0500 |
commit | 6542894a75f826203cab1ae482fdf5187be09205 (patch) | |
tree | f713cec18c5e9f5c7be30c272f6e485e852339a1 /linden/indra/newview/llappviewer.cpp | |
parent | Print out the plugins gstreamer finds, for debugging. (diff) | |
download | meta-impy-6542894a75f826203cab1ae482fdf5187be09205.zip meta-impy-6542894a75f826203cab1ae482fdf5187be09205.tar.gz meta-impy-6542894a75f826203cab1ae482fdf5187be09205.tar.bz2 meta-impy-6542894a75f826203cab1ae482fdf5187be09205.tar.xz |
Moved Windows GST_PLUGIN_PATH setup to LLMediaImplGStreamer.
LLAppViewer::gst_plugin_path -->
LLMediaImplGStreamer::set_gst_plugin_path
Diffstat (limited to 'linden/indra/newview/llappviewer.cpp')
-rw-r--r-- | linden/indra/newview/llappviewer.cpp | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/linden/indra/newview/llappviewer.cpp b/linden/indra/newview/llappviewer.cpp index 15ce1a3..6d87ca8 100644 --- a/linden/indra/newview/llappviewer.cpp +++ b/linden/indra/newview/llappviewer.cpp | |||
@@ -320,30 +320,6 @@ std::vector<std::string> gLoginURIs; | |||
320 | static std::string gHelperURI; | 320 | static std::string gHelperURI; |
321 | 321 | ||
322 | 322 | ||
323 | void LLAppViewer::gst_plugin_path() | ||
324 | { | ||
325 | #ifdef LL_WINDOWS | ||
326 | char* buffer; | ||
327 | |||
328 | // Get the current working directory: | ||
329 | if((buffer = _getcwd(NULL,0)) == NULL) | ||
330 | { | ||
331 | LL_INFOS("InitInfo") << "_getcwd error" << LL_ENDL; | ||
332 | } | ||
333 | else | ||
334 | { | ||
335 | LL_INFOS("InitInfo") << "Imprudence is installed at " << buffer << LL_ENDL; | ||
336 | |||
337 | std::string plugin_path = "GST_PLUGIN_PATH=" + std::string(buffer) + "\\lib\\gstreamer-plugins"; | ||
338 | |||
339 | // Place GST_PLUGIN_PATH in the environment settings for imprudence.exe | ||
340 | const char* gst_plugin_path = plugin_path.c_str(); | ||
341 | putenv(gst_plugin_path); | ||
342 | LL_INFOS("InitInfo") << "GST_PLUGIN_PATH set to " << getenv("GST_PLUGIN_PATH") << LL_ENDL; | ||
343 | } | ||
344 | #endif //LL_WINDOWS | ||
345 | } | ||
346 | |||
347 | void idle_afk_check() | 323 | void idle_afk_check() |
348 | { | 324 | { |
349 | // check idle timers | 325 | // check idle timers |
@@ -643,8 +619,6 @@ bool LLAppViewer::init() | |||
643 | LL_VERSION_PATCH, | 619 | LL_VERSION_PATCH, |
644 | LL_VERSION_BUILD ); | 620 | LL_VERSION_BUILD ); |
645 | 621 | ||
646 | gst_plugin_path(); | ||
647 | |||
648 | ////////////////////////////////////////////////////////////////////////////// | 622 | ////////////////////////////////////////////////////////////////////////////// |
649 | ////////////////////////////////////////////////////////////////////////////// | 623 | ////////////////////////////////////////////////////////////////////////////// |
650 | ////////////////////////////////////////////////////////////////////////////// | 624 | ////////////////////////////////////////////////////////////////////////////// |