From 545f70064840a0ec2898e624fb1add7f1e9c23ba Mon Sep 17 00:00:00 2001 From: "yuchang.xu" Date: Sat, 15 Oct 2022 01:38:52 +0800 Subject: [PATCH] Get current process windows failed when enumeration window in thread_. --- src/rtc_desktop_media_list_impl.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/rtc_desktop_media_list_impl.cc b/src/rtc_desktop_media_list_impl.cc index b744041dd3..09c02cd190 100644 --- a/src/rtc_desktop_media_list_impl.cc +++ b/src/rtc_desktop_media_list_impl.cc @@ -74,9 +74,7 @@ int32_t RTCDesktopMediaListImpl::UpdateSourceList(bool force_reload, bool get_th } webrtc::DesktopCapturer::SourceList new_sources; - thread_->Invoke(RTC_FROM_HERE, [this,&new_sources] { - capturer_->GetSourceList(&new_sources); - }); + capturer_->GetSourceList(&new_sources); typedef std::set SourceSet; SourceSet new_source_set;