diff options
author | McCabe Maxsted | 2010-10-26 20:26:00 -0700 |
---|---|---|
committer | McCabe Maxsted | 2010-10-26 20:26:00 -0700 |
commit | 45438a88354927942315ad5c4872cc76515d1891 (patch) | |
tree | 61a5585e17d394012483e7a456df6b339c3b44cb /linden/indra/test_apps/llplugintest/llmediaplugintest.cpp | |
parent | Set LL_GSTREAMER010_ENABLED to true for Linux-only until gstreamer loading ca... (diff) | |
download | meta-impy-45438a88354927942315ad5c4872cc76515d1891.zip meta-impy-45438a88354927942315ad5c4872cc76515d1891.tar.gz meta-impy-45438a88354927942315ad5c4872cc76515d1891.tar.bz2 meta-impy-45438a88354927942315ad5c4872cc76515d1891.tar.xz |
Fixed media plugin test not compiling
Diffstat (limited to '')
-rw-r--r-- | linden/indra/test_apps/llplugintest/llmediaplugintest.cpp | 37 |
1 files changed, 33 insertions, 4 deletions
diff --git a/linden/indra/test_apps/llplugintest/llmediaplugintest.cpp b/linden/indra/test_apps/llplugintest/llmediaplugintest.cpp index 27cb52a..bc3703d 100644 --- a/linden/indra/test_apps/llplugintest/llmediaplugintest.cpp +++ b/linden/indra/test_apps/llplugintest/llmediaplugintest.cpp | |||
@@ -1169,8 +1169,8 @@ void LLMediaPluginTest::keyboard( int key ) | |||
1169 | exit( 0 ); | 1169 | exit( 0 ); |
1170 | }; | 1170 | }; |
1171 | 1171 | ||
1172 | mSelectedPanel->mMediaSource->keyEvent( LLPluginClassMedia::KEY_EVENT_DOWN, key, 0 ); | 1172 | mSelectedPanel->mMediaSource->keyEvent( LLPluginClassMedia::KEY_EVENT_DOWN, key, 0 , LLSD()); |
1173 | mSelectedPanel->mMediaSource->keyEvent( LLPluginClassMedia::KEY_EVENT_UP, key, 0 ); | 1173 | mSelectedPanel->mMediaSource->keyEvent( LLPluginClassMedia::KEY_EVENT_UP, key, 0, LLSD()); |
1174 | }; | 1174 | }; |
1175 | 1175 | ||
1176 | //////////////////////////////////////////////////////////////////////////////// | 1176 | //////////////////////////////////////////////////////////////////////////////// |
@@ -1529,7 +1529,21 @@ void LLMediaPluginTest::addMediaPanel( std::string url ) | |||
1529 | #elif LL_WINDOWS | 1529 | #elif LL_WINDOWS |
1530 | std::string launcher_name( "SLPlugin.exe" ); | 1530 | std::string launcher_name( "SLPlugin.exe" ); |
1531 | #endif | 1531 | #endif |
1532 | media_source->init( launcher_name, plugin_name ); | 1532 | |
1533 | // for this test app, use the cwd as the user data path (ugh). | ||
1534 | #if LL_WINDOWS | ||
1535 | std::string user_data_path = ".\\"; | ||
1536 | #else | ||
1537 | char cwd[ FILENAME_MAX ]; | ||
1538 | if (NULL == getcwd( cwd, FILENAME_MAX - 1 )) | ||
1539 | { | ||
1540 | std::cerr << "Couldn't get cwd - probably too long - failing to init." << std::endl; | ||
1541 | return; | ||
1542 | } | ||
1543 | std::string user_data_path = std::string( cwd ) + "/"; | ||
1544 | #endif | ||
1545 | media_source->setUserDataPath(user_data_path); | ||
1546 | media_source->init( launcher_name, plugin_name, false ); | ||
1533 | media_source->setDisableTimeout(mDisableTimeout); | 1547 | media_source->setDisableTimeout(mDisableTimeout); |
1534 | 1548 | ||
1535 | // make a new panel and save parameters | 1549 | // make a new panel and save parameters |
@@ -1752,7 +1766,22 @@ void LLMediaPluginTest::replaceMediaPanel( mediaPanel* panel, std::string url ) | |||
1752 | #elif LL_WINDOWS | 1766 | #elif LL_WINDOWS |
1753 | std::string launcher_name( "SLPlugin.exe" ); | 1767 | std::string launcher_name( "SLPlugin.exe" ); |
1754 | #endif | 1768 | #endif |
1755 | media_source->init( launcher_name, plugin_name ); | 1769 | |
1770 | // for this test app, use the cwd as the user data path (ugh). | ||
1771 | #if LL_WINDOWS | ||
1772 | std::string user_data_path = ".\\"; | ||
1773 | #else | ||
1774 | char cwd[ FILENAME_MAX ]; | ||
1775 | if (NULL == getcwd( cwd, FILENAME_MAX - 1 )) | ||
1776 | { | ||
1777 | std::cerr << "Couldn't get cwd - probably too long - failing to init." << std::endl; | ||
1778 | return; | ||
1779 | } | ||
1780 | std::string user_data_path = std::string( cwd ) + "/"; | ||
1781 | #endif | ||
1782 | |||
1783 | media_source->setUserDataPath(user_data_path); | ||
1784 | media_source->init( launcher_name, plugin_name, false ); | ||
1756 | media_source->setDisableTimeout(mDisableTimeout); | 1785 | media_source->setDisableTimeout(mDisableTimeout); |
1757 | 1786 | ||
1758 | // make a new panel and save parameters | 1787 | // make a new panel and save parameters |