diff options
Diffstat (limited to 'linden/indra/llaudio/llaudiodecodemgr.cpp')
-rw-r--r-- | linden/indra/llaudio/llaudiodecodemgr.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/linden/indra/llaudio/llaudiodecodemgr.cpp b/linden/indra/llaudio/llaudiodecodemgr.cpp index 399adf5..afb3c33 100644 --- a/linden/indra/llaudio/llaudiodecodemgr.cpp +++ b/linden/indra/llaudio/llaudiodecodemgr.cpp | |||
@@ -631,8 +631,11 @@ BOOL LLAudioDecodeMgr::addDecodeRequest(const LLUUID &uuid) | |||
631 | 631 | ||
632 | if (gAssetStorage->hasLocalAsset(uuid, LLAssetType::AT_SOUND)) | 632 | if (gAssetStorage->hasLocalAsset(uuid, LLAssetType::AT_SOUND)) |
633 | { | 633 | { |
634 | // Just put it on the decode queue. | 634 | // Just put it on the decode queue if it's not already. |
635 | mImpl->mDecodeQueue.push(uuid); | 635 | if (!mImpl->mDecodeQueue.checkData(uuid)) |
636 | { | ||
637 | mImpl->mDecodeQueue.push(uuid); | ||
638 | } | ||
636 | return TRUE; | 639 | return TRUE; |
637 | } | 640 | } |
638 | 641 | ||