From b0c271c7f974ff533729ad63c4e5d6f9f0ca0d25 Mon Sep 17 00:00:00 2001 From: Moonchild Date: Wed, 23 Sep 2020 01:45:29 +0000 Subject: [dom/media] Use an atomic for mInputDeviceID to avoid potential race --- dom/media/MediaStreamGraphImpl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 mInputDeviceID; bool mOutputWanted; int mOutputDeviceID; // Maps AudioDataListeners to a usecount of streams using the listener -- cgit v1.2.3