aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/lloverlaybar.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:11 -0500
committerJacek Antonelli2008-08-15 23:45:11 -0500
commit215f423cbe18fe9ca14a26caef918d303bad28ff (patch)
tree0743442b286216cc8e19aa487c26f4e9345ffd64 /linden/indra/newview/lloverlaybar.cpp
parentSecond Life viewer sources 1.18.3.5-RC (diff)
downloadmeta-impy-215f423cbe18fe9ca14a26caef918d303bad28ff.zip
meta-impy-215f423cbe18fe9ca14a26caef918d303bad28ff.tar.gz
meta-impy-215f423cbe18fe9ca14a26caef918d303bad28ff.tar.bz2
meta-impy-215f423cbe18fe9ca14a26caef918d303bad28ff.tar.xz
Second Life viewer sources 1.18.4.0-RC
Diffstat (limited to 'linden/indra/newview/lloverlaybar.cpp')
-rw-r--r--linden/indra/newview/lloverlaybar.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/linden/indra/newview/lloverlaybar.cpp b/linden/indra/newview/lloverlaybar.cpp
index f5addd0..d8131c2 100644
--- a/linden/indra/newview/lloverlaybar.cpp
+++ b/linden/indra/newview/lloverlaybar.cpp
@@ -2,6 +2,8 @@
2 * @file lloverlaybar.cpp 2 * @file lloverlaybar.cpp
3 * @brief LLOverlayBar class implementation 3 * @brief LLOverlayBar class implementation
4 * 4 *
5 * $LicenseInfo:firstyear=2002&license=viewergpl$
6 *
5 * Copyright (c) 2002-2007, Linden Research, Inc. 7 * Copyright (c) 2002-2007, Linden Research, Inc.
6 * 8 *
7 * Second Life Viewer Source Code 9 * Second Life Viewer Source Code
@@ -24,6 +26,7 @@
24 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO 26 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
25 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, 27 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
26 * COMPLETENESS OR PERFORMANCE. 28 * COMPLETENESS OR PERFORMANCE.
29 * $/LicenseInfo$
27 */ 30 */
28 31
29// Temporary buttons that appear at the bottom of the screen when you 32// Temporary buttons that appear at the bottom of the screen when you
@@ -357,8 +360,7 @@ void LLOverlayBar::refresh()
357 { 360 {
358 LLParcel* parcel = gParcelMgr->getAgentParcel(); 361 LLParcel* parcel = gParcelMgr->getAgentParcel();
359 if (!parcel 362 if (!parcel
360 || !parcel->getMusicURL() 363 || parcel->getMusicURL().empty()
361 || !parcel->getMusicURL()[0]
362 || !gSavedSettings.getBOOL("AudioStreamingMusic")) 364 || !gSavedSettings.getBOOL("AudioStreamingMusic"))
363 { 365 {
364 mMusicRemote->setVisible(FALSE); 366 mMusicRemote->setVisible(FALSE);
@@ -506,7 +508,7 @@ void LLOverlayBar::musicPlay(void*)
506 // stream is stopped, it doesn't return the right thing - commenting out for now. 508 // stream is stopped, it doesn't return the right thing - commenting out for now.
507// if ( gAudiop->isInternetStreamPlaying() == 0 ) 509// if ( gAudiop->isInternetStreamPlaying() == 0 )
508 { 510 {
509 gAudiop->startInternetStream(parcel->getMusicURL()); 511 gAudiop->startInternetStream(parcel->getMusicURL().c_str());
510 } 512 }
511 } 513 }
512 } 514 }