Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Alchemy Viewer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
Alchemy Viewer
Alchemy Viewer
Commits
7a2e3dd1
Commit
7a2e3dd1
authored
6 years ago
by
maxim_productengine
Browse files
Options
Downloads
Patches
Plain Diff
MAINT-8611 Prevent object media updates if media preference is disabled
parent
ff521c67
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
indra/newview/llmediadataclient.cpp
+15
-0
15 additions, 0 deletions
indra/newview/llmediadataclient.cpp
with
15 additions
and
0 deletions
indra/newview/llmediadataclient.cpp
+
15
−
0
View file @
7a2e3dd1
...
@@ -27,6 +27,7 @@
...
@@ -27,6 +27,7 @@
#include
"llviewerprecompiledheaders.h"
#include
"llviewerprecompiledheaders.h"
#include
"llmediadataclient.h"
#include
"llmediadataclient.h"
#include
"llviewercontrol.h"
#if LL_MSVC
#if LL_MSVC
// disable boost::lexical_cast warning
// disable boost::lexical_cast warning
...
@@ -718,6 +719,13 @@ bool LLObjectMediaDataClient::compareRequestScores(const Request::ptr_t &o1, con
...
@@ -718,6 +719,13 @@ bool LLObjectMediaDataClient::compareRequestScores(const Request::ptr_t &o1, con
void
LLObjectMediaDataClient
::
enqueue
(
Request
::
ptr_t
request
)
void
LLObjectMediaDataClient
::
enqueue
(
Request
::
ptr_t
request
)
{
{
static
LLCachedControl
<
bool
>
audio_streaming_enabled
(
gSavedSettings
,
"AudioStreamingMedia"
,
true
);
if
(
!
audio_streaming_enabled
)
{
LL_DEBUGS
(
"LLMediaDataClient"
)
<<
"not queueing request when Media is disabled "
<<
*
request
<<
LL_ENDL
;
return
;
}
if
(
request
->
isDead
())
if
(
request
->
isDead
())
{
{
LL_DEBUGS
(
"LLMediaDataClient"
)
<<
"not queueing dead request "
<<
*
request
<<
LL_ENDL
;
LL_DEBUGS
(
"LLMediaDataClient"
)
<<
"not queueing dead request "
<<
*
request
<<
LL_ENDL
;
...
@@ -978,6 +986,13 @@ const char *LLObjectMediaNavigateClient::getCapabilityName() const
...
@@ -978,6 +986,13 @@ const char *LLObjectMediaNavigateClient::getCapabilityName() const
void
LLObjectMediaNavigateClient
::
enqueue
(
Request
::
ptr_t
request
)
void
LLObjectMediaNavigateClient
::
enqueue
(
Request
::
ptr_t
request
)
{
{
static
LLCachedControl
<
bool
>
audio_streaming_enabled
(
gSavedSettings
,
"AudioStreamingMedia"
,
true
);
if
(
!
audio_streaming_enabled
)
{
LL_DEBUGS
(
"LLMediaDataClient"
)
<<
"not queueing request when Media is disabled "
<<
*
request
<<
LL_ENDL
;
return
;
}
if
(
request
->
isDead
())
if
(
request
->
isDead
())
{
{
LL_DEBUGS
(
"LLMediaDataClient"
)
<<
"not queuing dead request "
<<
*
request
<<
LL_ENDL
;
LL_DEBUGS
(
"LLMediaDataClient"
)
<<
"not queuing dead request "
<<
*
request
<<
LL_ENDL
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment