summaryrefslogtreecommitdiffstats
path: root/dom/media
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2020-09-23 01:45:29 +0000
committerMoonchild <moonchild@palemoon.org>2020-09-23 01:45:29 +0000
commitaecdb28300020cb4c900f83931fc0942b25695af (patch)
treed376a19b84642aeb38e2908e0d14a09b17d2522b /dom/media
parent4d999e03a305999bb83946f7c947998237e2534c (diff)
downloadUXP-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')
-rw-r--r--dom/media/MediaStreamGraphImpl.h2
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