diff options
author | Callum Prentice <callum@gmail.com> | 2020-05-22 13:16:38 -0700 |
---|---|---|
committer | Callum Prentice <callum@gmail.com> | 2020-05-22 13:16:38 -0700 |
commit | ad1a46affa3c47ba04a53a5ad625cd3e3693118f (patch) | |
tree | a4cf36bccb9ddab3143b0c4de69218ef6b9e19b9 | |
parent | 839e7acbc80715e5a6524be371266a760aed74e8 (diff) |
Fix (has a TOOD) for SL-13203: Parcel media auto-play works when turned off
-rw-r--r-- | indra/newview/llviewerparcelmedia.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/indra/newview/llviewerparcelmedia.cpp b/indra/newview/llviewerparcelmedia.cpp index 4713ed4167..0cdd447fcd 100644 --- a/indra/newview/llviewerparcelmedia.cpp +++ b/indra/newview/llviewerparcelmedia.cpp @@ -159,6 +159,12 @@ void LLViewerParcelMedia::play(LLParcel* parcel) if (!gSavedSettings.getBOOL("AudioStreamingMedia")) return; + // This test appears all over the code and really should be facotred out into a single + // call that returns true/false (with option ask dialog) but that is outside of scope + // for this work so we'll just directly. + if (gSavedSettings.getS32("ParcelMediaAutoPlayEnable") == 0 ) + return; + std::string media_url = parcel->getMediaURL(); std::string media_current_url = parcel->getMediaCurrentURL(); std::string mime_type = parcel->getMediaType(); |