diff options
author | Moonchild <moonchild@palemoon.org> | 2020-09-23 01:45:29 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2020-09-23 08:28:56 +0000 |
commit | b0c271c7f974ff533729ad63c4e5d6f9f0ca0d25 (patch) | |
tree | 9f1d3c916bb086f1ed26569a151d0b1848008e30 /dom | |
parent | 37efb98518ae720e9308a8cd4732817a46e15f17 (diff) | |
download | UXP-b0c271c7f974ff533729ad63c4e5d6f9f0ca0d25.tar UXP-b0c271c7f974ff533729ad63c4e5d6f9f0ca0d25.tar.gz UXP-b0c271c7f974ff533729ad63c4e5d6f9f0ca0d25.tar.lz UXP-b0c271c7f974ff533729ad63c4e5d6f9f0ca0d25.tar.xz UXP-b0c271c7f974ff533729ad63c4e5d6f9f0ca0d25.zip |
[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 |