diff options
author | Brad Payne (Vir Linden) <vir@lindenlab.com> | 2021-09-16 14:29:39 +0100 |
---|---|---|
committer | Brad Payne (Vir Linden) <vir@lindenlab.com> | 2021-09-16 14:29:39 +0100 |
commit | 411c9aa485e1d6e260a261257f64aeac9f244963 (patch) | |
tree | 6d737c0372c6794db5d97ef021a05b3909173bc3 /indra | |
parent | 6d2714ac85815699599501538a397ccba109c6c6 (diff) |
SL-15999 - skip plugins in NonInteractive mode
Diffstat (limited to 'indra')
-rw-r--r-- | indra/newview/llviewermedia.cpp | 5 |
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; |