Stop IncomingVideoStream on delete.

Fixes race between VideoReceiveStream destruction and pending
IncomingVideoStream frames.

BUG=
TBR=mflodman@webrtc.org

Review URL: https://webrtc-codereview.appspot.com/45259004

Cr-Commit-Position: refs/heads/master@{#9084}
This commit is contained in:
Peter Boström 2015-04-24 18:06:52 +02:00
parent 23dc68e515
commit 52ef9d7738

View File

@ -263,6 +263,7 @@ VideoReceiveStream::VideoReceiveStream(webrtc::VideoEngine* video_engine,
}
VideoReceiveStream::~VideoReceiveStream() {
incoming_video_stream_->Stop();
vie_channel_->RegisterPreRenderCallback(nullptr);
vie_channel_->RegisterPreDecodeImageCallback(nullptr);