[dom/media] Use an atomic for mInputDeviceID to avoid potential race.
parent
ab0ae6cc24
commit
f5425c8ddb
|
@ -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…
Reference in New Issue