summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorBrad Payne (Vir Linden) <vir@lindenlab.com>2021-09-16 14:29:39 +0100
committerBrad Payne (Vir Linden) <vir@lindenlab.com>2021-09-16 14:29:39 +0100
commit411c9aa485e1d6e260a261257f64aeac9f244963 (patch)
tree6d737c0372c6794db5d97ef021a05b3909173bc3 /indra
parent6d2714ac85815699599501538a397ccba109c6c6 (diff)
SL-15999 - skip plugins in NonInteractive mode
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/llviewermedia.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/indra/newview/llviewermedia.cpp b/indra/newview/llviewermedia.cpp
index d35dbda907..82152a6cf5 100644
--- a/indra/newview/llviewermedia.cpp
+++ b/indra/newview/llviewermedia.cpp
@@ -1687,6 +1687,11 @@ void LLViewerMediaImpl::setMediaType(const std::string& media_type)
/*static*/
LLPluginClassMedia* LLViewerMediaImpl::newSourceFromMediaType(std::string media_type, LLPluginClassMediaOwner *owner /* may be NULL */, S32 default_width, S32 default_height, F64 zoom_factor, const std::string target, bool clean_browser)
{
+ if (gSavedSettings.getBOOL("NonInteractive"))
+ {
+ return NULL;
+ }
+
std::string plugin_basename = LLMIMETypes::implType(media_type);
LLPluginClassMedia* media_source = NULL;