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 | f334478c2fbe0ece0df87bc0ad1598e74972d49d (patch) | |
tree | d376a19b84642aeb38e2908e0d14a09b17d2522b | |
parent | f86c7c1f2fbc2d6a5a3005b789304816e4cfe23e (diff) | |
download | uxp-f334478c2fbe0ece0df87bc0ad1598e74972d49d.tar.gz |
[dom/media] Use an atomic for mInputDeviceID to avoid potential race
-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 c719754932..b3d7d87012 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 |