aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llviewerparcelmgr.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llviewerparcelmgr.cpp')
-rw-r--r--linden/indra/newview/llviewerparcelmgr.cpp19
1 files changed, 5 insertions, 14 deletions
diff --git a/linden/indra/newview/llviewerparcelmgr.cpp b/linden/indra/newview/llviewerparcelmgr.cpp
index ac56681..31c7d97 100644
--- a/linden/indra/newview/llviewerparcelmgr.cpp
+++ b/linden/indra/newview/llviewerparcelmgr.cpp
@@ -180,8 +180,7 @@ LLViewerParcelMgr::~LLViewerParcelMgr()
180 delete[] mCollisionSegments; 180 delete[] mCollisionSegments;
181 mCollisionSegments = NULL; 181 mCollisionSegments = NULL;
182 182
183 // weird, this crashes if I use an array delete on it! 183 delete[] sPackedOverlay;
184 delete sPackedOverlay;
185 sPackedOverlay = NULL; 184 sPackedOverlay = NULL;
186 185
187 delete[] mAgentParcelOverlay; 186 delete[] mAgentParcelOverlay;
@@ -1793,13 +1792,10 @@ void optionally_start_music(const LLString& music_url)
1793 1792
1794 // now only play music when you enter a new parcel if the control is in PLAY state 1793 // now only play music when you enter a new parcel if the control is in PLAY state
1795 // changed as part of SL-4878 1794 // changed as part of SL-4878
1796 if ( gOverlayBar->getMusicRemoteControl ()->getTransportState () == LLMediaRemoteCtrl::Play ) 1795 if ( gOverlayBar && gOverlayBar->musicPlaying() )
1797 { 1796 {
1798 if (gAudiop) 1797 LLOverlayBar::musicPlay(NULL);
1799 { 1798 }
1800 gAudiop->startInternetStream(music_url.c_str());
1801 }
1802 };
1803 } 1799 }
1804} 1800}
1805 1801
@@ -1812,12 +1808,7 @@ void callback_start_music(S32 option, void* data)
1812 { 1808 {
1813 gSavedSettings.setBOOL("AudioStreamingMusic", TRUE); 1809 gSavedSettings.setBOOL("AudioStreamingMusic", TRUE);
1814 llinfos << "Starting first parcel music " << music_url << llendl; 1810 llinfos << "Starting first parcel music " << music_url << llendl;
1815 if (gAudiop) 1811 LLOverlayBar::musicPlay(NULL);
1816 {
1817 gAudiop->startInternetStream(music_url->c_str());
1818 LLMediaRemoteCtrl* ctrl = gOverlayBar->getMusicRemoteControl();
1819 ctrl->setTransportState( LLMediaRemoteCtrl::Play, FALSE );
1820 }
1821 } 1812 }
1822 else 1813 else
1823 { 1814 {