aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorMcCabe Maxsted2009-01-23 04:23:11 -0700
committerMcCabe Maxsted2009-01-23 04:23:11 -0700
commit4be47b569f55543434088a746d15b6dd819e1ad5 (patch)
tree503f07960ccbed7fff6f6fb280dd801e1e77318e
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
-rw-r--r--ChangeLog.txt8
-rw-r--r--linden/indra/newview/llappviewer.cpp33
-rw-r--r--linden/indra/newview/llappviewer.h4
3 files changed, 44 insertions, 1 deletions
diff --git a/ChangeLog.txt b/ChangeLog.txt
index 1ee8548..18d743c 100644
--- a/ChangeLog.txt
+++ b/ChangeLog.txt
@@ -2,6 +2,14 @@
2=- 1.1.0 -= 2=- 1.1.0 -=
3=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- 3=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
4 4
52009-01-22 McCabe Maxsted <hakushakukun@gmail.com>
6
7 * linden/indra/newview/llappviewer.cpp:
8 Windows version sets its own gstreamer environment variable.
9 * linden/indra/newview/llappviewer.h:
10 Ditto.
11
12
52009-01-21 McCabe Maxsted <hakushakukun@gmail.com> 132009-01-21 McCabe Maxsted <hakushakukun@gmail.com>
6 14
7 * linden/indra/newview/skins/default/xui/en-us/alerts.xml: 15 * linden/indra/newview/skins/default/xui/en-us/alerts.xml:
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 //////////////////////////////////////////////////////////////////////////////
diff --git a/linden/indra/newview/llappviewer.h b/linden/indra/newview/llappviewer.h
index 801deb1..2083a93 100644
--- a/linden/indra/newview/llappviewer.h
+++ b/linden/indra/newview/llappviewer.h
@@ -137,6 +137,9 @@ public:
137 void pingMainloopTimeout(const std::string& state, F32 secs = -1.0f); 137 void pingMainloopTimeout(const std::string& state, F32 secs = -1.0f);
138 138
139protected: 139protected:
140
141 void gst_plugin_path(); // Sets GST_PLUGIN_PATH environment variable for GStreamer.
142
140 virtual bool initWindow(); // Initialize the viewer's window. 143 virtual bool initWindow(); // Initialize the viewer's window.
141 virtual bool initLogging(); // Initialize log files, logging system, return false on failure. 144 virtual bool initLogging(); // Initialize log files, logging system, return false on failure.
142 virtual void initConsole() {}; // Initialize OS level debugging console. 145 virtual void initConsole() {}; // Initialize OS level debugging console.
@@ -147,7 +150,6 @@ protected:
147 150
148 virtual std::string generateSerialNumber() = 0; // Platforms specific classes generate this. 151 virtual std::string generateSerialNumber() = 0; // Platforms specific classes generate this.
149 152
150
151private: 153private:
152 154
153 bool initThreads(); // Initialize viewer threads, return false on failure. 155 bool initThreads(); // Initialize viewer threads, return false on failure.