From 790385fee4cbc3f2c46bcbe5e5851e75d931153c Mon Sep 17 00:00:00 2001 From: "braveyao@webrtc.org" Date: Wed, 2 Apr 2014 02:14:55 +0000 Subject: [PATCH] sink_filter_ds.cc: add lock to Receive procedure to Pause(). BUG=2233 TEST=AUTO Test R=wu@webrtc.org Review URL: https://webrtc-codereview.appspot.com/10969004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@5827 4adac7df-926f-26a2-2b94-8c16560cd09d --- webrtc/modules/video_capture/windows/sink_filter_ds.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/webrtc/modules/video_capture/windows/sink_filter_ds.cc b/webrtc/modules/video_capture/windows/sink_filter_ds.cc index 144f8833b7..2edbe59c4a 100644 --- a/webrtc/modules/video_capture/windows/sink_filter_ds.cc +++ b/webrtc/modules/video_capture/windows/sink_filter_ds.cc @@ -437,6 +437,7 @@ CaptureSinkFilter::GetPin(IN int Index) STDMETHODIMP CaptureSinkFilter::Pause() { + LockReceive(); LockFilter(); if (m_State == State_Stopped) { @@ -456,6 +457,7 @@ STDMETHODIMP CaptureSinkFilter::Pause() m_State = State_Paused; } UnlockFilter(); + UnlockReceive(); return S_OK; }