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.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/linden/indra/newview/llviewerparcelmgr.cpp b/linden/indra/newview/llviewerparcelmgr.cpp
index b99b0c0..11ab647 100644
--- a/linden/indra/newview/llviewerparcelmgr.cpp
+++ b/linden/indra/newview/llviewerparcelmgr.cpp
@@ -85,7 +85,7 @@ LLPointer<LLViewerImage> sBlockedImage;
85LLPointer<LLViewerImage> sPassImage; 85LLPointer<LLViewerImage> sPassImage;
86 86
87// Local functions 87// Local functions
88void optionally_start_music(const std::string& music_url); 88void optionally_start_music(LLParcel* parcel);
89void callback_start_music(S32 option, void* data); 89void callback_start_music(S32 option, void* data);
90void optionally_prepare_video(const LLParcel *parcelp); 90void optionally_prepare_video(const LLParcel *parcelp);
91void callback_prepare_video(S32 option, void* data); 91void callback_prepare_video(S32 option, void* data);
@@ -1706,7 +1706,7 @@ void LLViewerParcelMgr::processParcelProperties(LLMessageSystem *msg, void **use
1706 { 1706 {
1707 if (music_url.substr(0,7) == "http://") 1707 if (music_url.substr(0,7) == "http://")
1708 { 1708 {
1709 optionally_start_music(music_url); 1709 optionally_start_music(parcel);
1710 } 1710 }
1711 } 1711 }
1712 else if (!gAudioStream->getInternetStreamURL().empty()) 1712 else if (!gAudioStream->getInternetStreamURL().empty())
@@ -1728,18 +1728,18 @@ void LLViewerParcelMgr::processParcelProperties(LLMessageSystem *msg, void **use
1728 }; 1728 };
1729} 1729}
1730 1730
1731void optionally_start_music(const std::string& music_url) 1731void optionally_start_music(LLParcel* parcel)
1732{ 1732{
1733 if (gSavedSettings.getBOOL("AudioStreamingMusic")) 1733 if (gSavedSettings.getBOOL("AudioStreamingMusic"))
1734 { 1734 {
1735 // Make the user click the start button on the overlay bar. JC 1735 // Make the user click the start button on the overlay bar. JC
1736 // llinfos << "Starting parcel music " << music_url << llendl; 1736 // llinfos << "Starting parcel music " << parcel->getMusicURL() << llendl;
1737 1737
1738 // now only play music when you enter a new parcel if the control is in PLAY state 1738 // now only play music when you enter a new parcel if the control is in PLAY state
1739 // changed as part of SL-4878 1739 // changed as part of SL-4878
1740 if ( gOverlayBar && gOverlayBar->musicPlaying()) 1740 if (gOverlayBar && gOverlayBar->musicPlaying())
1741 { 1741 {
1742 gAudioStream->startInternetStream(music_url); 1742 LLViewerParcelMedia::playStreamingMusic(parcel);
1743 } 1743 }
1744 } 1744 }
1745} 1745}