Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(430)

Unified Diff: webrtc/video/video_receive_stream.cc

Issue 2146883002: Avoid race in VideoReceiveStream shutdown (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Avoid race in VideoReceiveStream shutdown Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/video/video_receive_stream.cc
diff --git a/webrtc/video/video_receive_stream.cc b/webrtc/video/video_receive_stream.cc
index ad9beb35e75384801cf03d264f935a7137a9b383..4a1c55dd0971535cd30ef26866fbd713b3f4b634 100644
--- a/webrtc/video/video_receive_stream.cc
+++ b/webrtc/video/video_receive_stream.cc
@@ -267,8 +267,8 @@ void VideoReceiveStream::Start() {
void VideoReceiveStream::Stop() {
rtp_stream_receiver_.StopReceive();
- video_receiver_.TriggerDecoderShutdown();
decode_thread_.Stop();
pbos-webrtc 2016/07/13 13:06:35 That's harder than this. TriggerDecoderShutdown()
sprang_webrtc 2016/07/13 16:17:06 You're right. I've added a comment to that effect
+ video_receiver_.TriggerDecoderShutdown();
call_stats_->DeregisterStatsObserver(video_stream_decoder_.get());
video_stream_decoder_.reset();
incoming_video_stream_.reset();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698