summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorandreykproductengine <akleshchev@productengine.com>2016-01-14 17:26:17 +0200
committerandreykproductengine <akleshchev@productengine.com>2016-01-14 17:26:17 +0200
commitf26f1ca0f4545e695bfb731abd5d8c078de74e1f (patch)
treeb2019b61b9b3e82592cd927956c7915af669ba55 /indra/newview
parent2ae77b29019433e8982e629bfacaf9d37a555636 (diff)
MAINT-6042 FIXED Audio/Media automatically starts playing again after clicking "Stop All"
Diffstat (limited to 'indra/newview')
-rwxr-xr-xindra/newview/llviewerparcelmgr.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/indra/newview/llviewerparcelmgr.cpp b/indra/newview/llviewerparcelmgr.cpp
index 2a6b105cab..0f5b52c8d6 100755
--- a/indra/newview/llviewerparcelmgr.cpp
+++ b/indra/newview/llviewerparcelmgr.cpp
@@ -1453,6 +1453,7 @@ void LLViewerParcelMgr::processParcelProperties(LLMessageSystem *msg, void **use
BOOL region_deny_identified_override = false; // Deprecated
BOOL region_deny_transacted_override = false; // Deprecated
BOOL region_deny_age_unverified_override = false;
+ BOOL changed_parcel = false;
S32 other_clean_time = 0;
@@ -1571,6 +1572,7 @@ void LLViewerParcelMgr::processParcelProperties(LLMessageSystem *msg, void **use
if (parcel == parcel_mgr.mAgentParcel)
{
// new agent parcel
+ changed_parcel = true;
S32 bitmap_size = parcel_mgr.mParcelsPerEdge
* parcel_mgr.mParcelsPerEdge
/ 8;
@@ -1759,7 +1761,8 @@ void LLViewerParcelMgr::processParcelProperties(LLMessageSystem *msg, void **use
LLStringUtil::trim(music_url);
// If there is a new music URL and it's valid, play it.
- if (music_url.size() > 12)
+ const std::string& stream_url = gAudiop->getInternetStreamURL();
+ if (music_url.size() > 12 && (music_url != stream_url || changed_parcel))
{
if (music_url.substr(0,7) == "http://")
{
@@ -1773,7 +1776,7 @@ void LLViewerParcelMgr::processParcelProperties(LLMessageSystem *msg, void **use
LLViewerAudio::getInstance()->startInternetStreamWithAutoFade(LLStringUtil::null);
}
}
- else if (!gAudiop->getInternetStreamURL().empty())
+ else if (!stream_url.empty())
{
LL_INFOS() << "Stopping parcel music (parcel stream URL is empty)" << LL_ENDL;
// null value causes fade out