get llmediaplugintest compiling on win32, dumbly.

meow-7.2.2
Tofu Linden 2009-12-09 14:48:36 -08:00
parent ca2566a1ac
commit 9b0825be5c
1 changed files with 4 additions and 0 deletions

View File

@ -1531,6 +1531,9 @@ void LLMediaPluginTest::addMediaPanel( std::string url )
#endif
// for this test app, use the cwd as the user data path (ugh).
#if LL_WINDOWS
std::string user_data_path = ".\\";
#else
char cwd[ FILENAME_MAX ];
if (NULL == getcwd( cwd, FILENAME_MAX - 1 ))
{
@ -1538,6 +1541,7 @@ void LLMediaPluginTest::addMediaPanel( std::string url )
return;
}
std::string user_data_path = std::string( cwd ) + "/";
#endif
media_source->init( launcher_name, plugin_name, false, user_data_path );
media_source->setDisableTimeout(mDisableTimeout);