mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-24 16:17:29 +09:00
[dom/media] Use an atomic for mInputDeviceID to avoid potential race
This commit is contained in:
parent
ba9802a724
commit
e1b0d4eea1
1 changed files with 1 additions and 1 deletions
|
|
@ -652,7 +652,7 @@ public:
|
||||||
* and boolean to control if we want input/output
|
* and boolean to control if we want input/output
|
||||||
*/
|
*/
|
||||||
bool mInputWanted;
|
bool mInputWanted;
|
||||||
int mInputDeviceID;
|
Atomic<int> mInputDeviceID;
|
||||||
bool mOutputWanted;
|
bool mOutputWanted;
|
||||||
int mOutputDeviceID;
|
int mOutputDeviceID;
|
||||||
// Maps AudioDataListeners to a usecount of streams using the listener
|
// Maps AudioDataListeners to a usecount of streams using the listener
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue