diff --git a/atom/browser/api/atom_api_desktop_capturer.cc b/atom/browser/api/atom_api_desktop_capturer.cc index 4c7ed3145507..fa49b51f9815 100644 --- a/atom/browser/api/atom_api_desktop_capturer.cc +++ b/atom/browser/api/atom_api_desktop_capturer.cc @@ -91,7 +91,7 @@ void OnRefreshFinishedTask(atom::api::DesktopCapturer* cap) { // to provide an association between it and desktopCapturer/getUserMedia. // This is only required when using the DirectX capturer, otherwise the IDs // across the APIs already match. - if (using_directx_capturer_) { + if (cap->using_directx_capturer_) { std::vector device_names; // Crucially, this list of device names will be in the same order as // |media_list_sources|.