STDMETHODIMP CaptureInputPin::Receive(IMediaSample* media_sample){//RTC_DCHECK_RUN_ON(&capture_checker_); // 这行代码注释掉&#xff0c;解决 p2p 连接闪退问题CaptureSinkFilter*const filter &#61;static_cast<CaptureSinkFilter*>(Filter());if(flushing_.load(std::memory_order_relaxed))return S_FALSE;if(runtime_error_.load(std::memory_order_relaxed))return VFW_E_RUNTIME_ERROR;if(!capture_thread_id_){// Make sure we set the thread name only once.capture_thread_id_ &#61;GetCurrentThreadId();rtc::SetCurrentThreadName("webrtc_video_capture");}