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

Issue 2402663003: Avoid race in VideoReceiveStream shutdown (Closed)

Created:
4 years, 2 months ago by sprang_webrtc
Modified:
4 years, 2 months ago
Reviewers:
tommi, mflodman
CC:
webrtc-reviews_webrtc.org, video-team_agora.io, yujie_mao (webrtc), zhengzhonghou_agora.io, stefan-webrtc, tterriberry_mozilla.com, perkj_webrtc, mflodman
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Avoid race in VideoReceiveStream shutdown The decoder implementation may have its own thread for asynchrouns callbacks. We need to stop it (by releasing the decoder) when stopping the decoder thread, othweise it may call incoming_video_stream_ after it has been destroyed. BUG=webrtc:6501 Committed: https://crrev.com/0d348d69e6c6cf58e07e12b43a06566de580bdfc Cr-Commit-Position: refs/heads/master@{#14577}

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -8 lines) Patch
M webrtc/video/video_receive_stream.cc View 2 chunks +9 lines, -8 lines 2 comments Download

Messages

Total messages: 16 (8 generated)
sprang_webrtc
4 years, 2 months ago (2016-10-07 14:30:50 UTC) #2
mflodman
LGTM to get this in. Is there a way we can test this?
4 years, 2 months ago (2016-10-07 14:57:31 UTC) #4
sprang_webrtc
On 2016/10/07 14:57:31, mflodman wrote: > LGTM to get this in. > > Is there ...
4 years, 2 months ago (2016-10-07 15:03:24 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2402663003/1
4 years, 2 months ago (2016-10-07 15:03:49 UTC) #9
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 2 months ago (2016-10-07 15:28:43 UTC) #11
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/0d348d69e6c6cf58e07e12b43a06566de580bdfc Cr-Commit-Position: refs/heads/master@{#14577}
4 years, 2 months ago (2016-10-07 15:28:48 UTC) #13
tommi
drive by question https://codereview.webrtc.org/2402663003/diff/1/webrtc/video/video_receive_stream.cc File webrtc/video/video_receive_stream.cc (right): https://codereview.webrtc.org/2402663003/diff/1/webrtc/video/video_receive_stream.cc#newcode220 webrtc/video/video_receive_stream.cc:220: for (const Decoder& decoder : config_.decoders) ...
4 years, 2 months ago (2016-10-07 19:45:40 UTC) #15
mflodman
4 years, 2 months ago (2016-10-09 09:22:26 UTC) #16
Message was sent while issue was closed.
https://codereview.webrtc.org/2402663003/diff/1/webrtc/video/video_receive_st...
File webrtc/video/video_receive_stream.cc (right):

https://codereview.webrtc.org/2402663003/diff/1/webrtc/video/video_receive_st...
webrtc/video/video_receive_stream.cc:220: for (const Decoder& decoder :
config_.decoders) {
On 2016/10/07 19:45:40, tommi (webrtc) wrote:
> should this loop be moved into Start()?  As is, we don't seem to have symmetry
> and two cycles of Start/Stop, would not do exactly the same thing.

Yes, agree that should be done. Good catch Tommi!

Powered by Google App Engine
This is Rietveld 408576698