From aecdb28300020cb4c900f83931fc0942b25695af 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(-) (limited to 'dom') 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