diff options
author | callum_linden <none@none> | 2018-03-01 14:33:47 -0800 |
---|---|---|
committer | callum_linden <none@none> | 2018-03-01 14:33:47 -0800 |
commit | f4867d032dfe93b249eb188f071cb309e3a7b23e (patch) | |
tree | 144bb92ed630302d1d68910069ad2505946eb471 /indra/newview/llviewermedia.cpp | |
parent | 278382abd72a02b5e190cb259d2b4806f3908902 (diff) | |
parent | f8c76535a35aaf245e261357a59e977bac5b2501 (diff) |
Automated merge with tip of viewer-release
Diffstat (limited to 'indra/newview/llviewermedia.cpp')
-rw-r--r-- | indra/newview/llviewermedia.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/indra/newview/llviewermedia.cpp b/indra/newview/llviewermedia.cpp index c015648fa4..422c1a2328 100644 --- a/indra/newview/llviewermedia.cpp +++ b/indra/newview/llviewermedia.cpp @@ -776,13 +776,24 @@ void LLViewerMedia::updateMedia(void *dummy_arg) } } // update the audio stream here as well + static bool restore_parcel_audio = false; if( !inworld_audio_enabled) { if(LLViewerMedia::isParcelAudioPlaying() && gAudiop && LLViewerMedia::hasParcelAudio()) { LLViewerAudio::getInstance()->stopInternetStreamWithAutoFade(); + restore_parcel_audio = true; } } + else + { + if(gAudiop && LLViewerMedia::hasParcelAudio() && restore_parcel_audio && gSavedSettings.getBOOL("MediaTentativeAutoPlay")) + { + LLViewerAudio::getInstance()->startInternetStreamWithAutoFade(LLViewerMedia::getParcelAudioURL()); + restore_parcel_audio = false; + } + } + pimpl->setPriority(new_priority); if(pimpl->getUsedInUI()) |