aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llappviewer.cpp
diff options
context:
space:
mode:
authorMcCabe Maxsted2009-01-23 04:23:11 -0700
committerMcCabe Maxsted2009-01-23 04:23:11 -0700
commit4be47b569f55543434088a746d15b6dd819e1ad5 (patch)
tree503f07960ccbed7fff6f6fb280dd801e1e77318e /linden/indra/newview/llappviewer.cpp
parentAdded link to wiki tutorial and missing variables to build cheat sheet (diff)
downloadmeta-impy-4be47b569f55543434088a746d15b6dd819e1ad5.zip
meta-impy-4be47b569f55543434088a746d15b6dd819e1ad5.tar.gz
meta-impy-4be47b569f55543434088a746d15b6dd819e1ad5.tar.bz2
meta-impy-4be47b569f55543434088a746d15b6dd819e1ad5.tar.xz
Windows version sets its own gstreamer environment variable
Diffstat (limited to 'linden/indra/newview/llappviewer.cpp')
-rw-r--r--linden/indra/newview/llappviewer.cpp33
1 files changed, 33 insertions, 0 deletions
diff --git a/linden/indra/newview/llappviewer.cpp b/linden/indra/newview/llappviewer.cpp
index 9e68078..4bb235e 100644
--- a/linden/indra/newview/llappviewer.cpp
+++ b/linden/indra/newview/llappviewer.cpp
@@ -75,6 +75,9 @@
75 75
76#if LL_WINDOWS 76#if LL_WINDOWS
77 #include "llwindebug.h" 77 #include "llwindebug.h"
78 #include <direct.h>
79 #include <errno.h>
80 #include <stdlib.h>
78#endif 81#endif
79 82
80#if LL_WINDOWS 83#if LL_WINDOWS
@@ -316,6 +319,34 @@ std::string gLoginPage;
316std::vector<std::string> gLoginURIs; 319std::vector<std::string> gLoginURIs;
317static std::string gHelperURI; 320static std::string gHelperURI;
318 321
322
323void 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 char plugin_path[255];
338 strcpy (plugin_path,"GST_PLUGIN_PATH=");
339 strcat (plugin_path,buffer);
340 strcat (plugin_path,"\\lib");
341
342 // Place GST_PLUGIN_PATH in the environment settings for imprudence.exe
343 putenv(plugin_path);
344
345 LL_INFOS("InitInfo") << "GST_PLUGIN_PATH set to " << getenv("GST_PLUGIN_PATH") << LL_ENDL;
346 }
347#endif //LL_WINDOWS
348}
349
319void idle_afk_check() 350void idle_afk_check()
320{ 351{
321 // check idle timers 352 // check idle timers
@@ -615,6 +646,8 @@ bool LLAppViewer::init()
615 LL_VERSION_PATCH, 646 LL_VERSION_PATCH,
616 LL_VERSION_BUILD ); 647 LL_VERSION_BUILD );
617 648
649 gst_plugin_path();
650
618 ////////////////////////////////////////////////////////////////////////////// 651 //////////////////////////////////////////////////////////////////////////////
619 ////////////////////////////////////////////////////////////////////////////// 652 //////////////////////////////////////////////////////////////////////////////
620 ////////////////////////////////////////////////////////////////////////////// 653 //////////////////////////////////////////////////////////////////////////////