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 | aecdb28300020cb4c900f83931fc0942b25695af (patch) | |
tree | d376a19b84642aeb38e2908e0d14a09b17d2522b /dom/media/MediaStreamGraphImpl.h | |
parent | 4d999e03a305999bb83946f7c947998237e2534c (diff) | |
download | UXP-aecdb28300020cb4c900f83931fc0942b25695af.tar UXP-aecdb28300020cb4c900f83931fc0942b25695af.tar.gz UXP-aecdb28300020cb4c900f83931fc0942b25695af.tar.lz UXP-aecdb28300020cb4c900f83931fc0942b25695af.tar.xz UXP-aecdb28300020cb4c900f83931fc0942b25695af.zip |
[dom/media] Use an atomic for mInputDeviceID to avoid potential race
Diffstat (limited to 'dom/media/MediaStreamGraphImpl.h')
-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 |