diff options
author | Moonchild <moonchild@palemoon.org> | 2020-09-23 01:45:29 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2020-09-23 01:45:29 +0000 |
commit | bd30472255e411066b61be3bd31de068e6f705fc (patch) | |
tree | d376a19b84642aeb38e2908e0d14a09b17d2522b /dom | |
parent | 14d52abfd7b762293eac42a9cf8cc4e3d4411527 (diff) | |
download | aura-central-bd30472255e411066b61be3bd31de068e6f705fc.tar.gz |
[dom/media] Use an atomic for mInputDeviceID to avoid potential race
Diffstat (limited to 'dom')
-rw-r--r-- | dom/media/MediaStreamGraphImpl.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dom/media/MediaStreamGraphImpl.h b/dom/media/MediaStreamGraphImpl.h index c71975493..b3d7d8701 100644 --- a/dom/media/MediaStreamGraphImpl.h +++ b/dom/media/MediaStreamGraphImpl.h @@ -652,7 +652,7 @@ public: * and boolean to control if we want input/output */ bool mInputWanted; - int mInputDeviceID; + Atomic<int> mInputDeviceID; bool mOutputWanted; int mOutputDeviceID; // Maps AudioDataListeners to a usecount of streams using the listener |