diff options
| author | Jonathan Yap <none@none> | 2012-05-14 13:20:06 -0400 | 
|---|---|---|
| committer | Jonathan Yap <none@none> | 2012-05-14 13:20:06 -0400 | 
| commit | 502e89971f8cf22c49e9c42c38f0aee54a0654c5 (patch) | |
| tree | 88c76e6ae091e436c7746289942177b3437b3ed7 /indra | |
| parent | 1daac7272246416473942d05f1f700eb911ae942 (diff) | |
STORM-1812 Tweak how music is restarted for teleport within a parcel
Diffstat (limited to 'indra')
| -rw-r--r-- | indra/newview/llpanelnearbymedia.cpp | 2 | ||||
| -rw-r--r-- | indra/newview/llvieweraudio.cpp | 2 | ||||
| -rw-r--r-- | indra/newview/llviewerparcelmgr.cpp | 2 | 
3 files changed, 3 insertions, 3 deletions
diff --git a/indra/newview/llpanelnearbymedia.cpp b/indra/newview/llpanelnearbymedia.cpp index c01adc3c35..a50d9074f7 100644 --- a/indra/newview/llpanelnearbymedia.cpp +++ b/indra/newview/llpanelnearbymedia.cpp @@ -176,7 +176,7 @@ void LLPanelNearByMedia::handleMediaAutoPlayChanged(const LLSD& newvalue)  {  	// update mParcelAudioAutoStart if AUTO_PLAY_MEDIA_SETTING changes  	mParcelAudioAutoStart = gSavedSettings.getBOOL(LLViewerMedia::AUTO_PLAY_MEDIA_SETTING) && -							gSavedSettings.getBOOL("MediaTentativeAutoPlay");							 +							gSavedSettings.getBOOL("MediaTentativeAutoPlay");  }  /*virtual*/ diff --git a/indra/newview/llvieweraudio.cpp b/indra/newview/llvieweraudio.cpp index 0114c292dc..c04e6eeb5c 100644 --- a/indra/newview/llvieweraudio.cpp +++ b/indra/newview/llvieweraudio.cpp @@ -268,7 +268,7 @@ void LLViewerAudio::onTeleportFinished(const LLVector3d& pos, const bool& local)  		LLParcel* parcel = LLViewerParcelMgr::getInstance()->getAgentParcel();  		if (parcel)  		{ -			LLViewerParcelMgr::optionally_start_music(parcel->getMusicURL()); +			mNextStreamURI = parcel->getMusicURL();  		}  	}  } diff --git a/indra/newview/llviewerparcelmgr.cpp b/indra/newview/llviewerparcelmgr.cpp index a89fafdc62..ae9c31bfe7 100644 --- a/indra/newview/llviewerparcelmgr.cpp +++ b/indra/newview/llviewerparcelmgr.cpp @@ -1778,7 +1778,7 @@ void LLViewerParcelMgr::optionally_start_music(const std::string& music_url)  	{  		// only play music when you enter a new parcel if the UI control for this  		// was not *explicitly* stopped by the user. (part of SL-4878) -		LLPanelNearByMedia* nearby_media_panel = gStatusBar->getNearbyMediaPanel();; +		LLPanelNearByMedia* nearby_media_panel = gStatusBar->getNearbyMediaPanel();  		if ((nearby_media_panel &&  		     nearby_media_panel->getParcelAudioAutoStart()) ||  		    // or they have expressed no opinion in the UI, but have autoplay on...  | 
