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

Issue 2146883002: Avoid race in VideoReceiveStream shutdown (Closed)

Created:
4 years, 5 months ago by sprang_webrtc
Modified:
4 years, 5 months ago
Reviewers:
pbos-webrtc
CC:
webrtc-reviews_webrtc.org, video-team_agora.io, yujie_mao (webrtc), zhengzhonghou_agora.io, stefan-webrtc, tterriberry_mozilla.com, pbos-webrtc, perkj_webrtc, mflodman
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Avoid race in VideoReceiveStream shutdown The decode thread should be stopped before triggering shutdown of the video receiver, so that the decoder doesn't try to insert a new frame while the jitter buffer is being shut down. BUG=webrtc:6102 Committed: https://crrev.com/22691e0d3273649a7bc5e6822e4c82f3b02ad5ae Cr-Commit-Position: refs/heads/master@{#13467}

Patch Set 1 #

Patch Set 2 : Avoid race in VideoReceiveStream shutdown #

Total comments: 2

Patch Set 3 : JitterBuffer not resetting frame buffers on Stop #

Total comments: 4

Patch Set 4 : Addressed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -31 lines) Patch
M webrtc/modules/video_coding/jitter_buffer.h View 1 2 3 chunks +4 lines, -4 lines 0 comments Download
M webrtc/modules/video_coding/jitter_buffer.cc View 1 2 3 9 chunks +19 lines, -27 lines 0 comments Download
M webrtc/video/video_receive_stream.cc View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (4 generated)
sprang_webrtc
4 years, 5 months ago (2016-07-13 12:57:06 UTC) #2
pbos-webrtc
https://codereview.webrtc.org/2146883002/diff/20001/webrtc/video/video_receive_stream.cc File webrtc/video/video_receive_stream.cc (right): https://codereview.webrtc.org/2146883002/diff/20001/webrtc/video/video_receive_stream.cc#newcode270 webrtc/video/video_receive_stream.cc:270: decode_thread_.Stop(); That's harder than this. TriggerDecoderShutdown() is what's causing ...
4 years, 5 months ago (2016-07-13 13:06:35 UTC) #3
sprang_webrtc
I've made some refactoring to the jitter buffer, so frame buffers are reset immediately when ...
4 years, 5 months ago (2016-07-13 16:17:06 UTC) #4
pbos-webrtc
lgtm https://codereview.webrtc.org/2146883002/diff/40001/webrtc/modules/video_coding/jitter_buffer.cc File webrtc/modules/video_coding/jitter_buffer.cc (right): https://codereview.webrtc.org/2146883002/diff/40001/webrtc/modules/video_coding/jitter_buffer.cc#newcode335 webrtc/modules/video_coding/jitter_buffer.cc:335: { Remove the {}s, the time for calling ...
4 years, 5 months ago (2016-07-13 16:43:06 UTC) #5
sprang_webrtc
https://codereview.webrtc.org/2146883002/diff/40001/webrtc/modules/video_coding/jitter_buffer.cc File webrtc/modules/video_coding/jitter_buffer.cc (right): https://codereview.webrtc.org/2146883002/diff/40001/webrtc/modules/video_coding/jitter_buffer.cc#newcode335 webrtc/modules/video_coding/jitter_buffer.cc:335: { On 2016/07/13 16:43:05, pbos-webrtc wrote: > Remove the ...
4 years, 5 months ago (2016-07-13 16:51:32 UTC) #6
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/2146883002/60001
4 years, 5 months ago (2016-07-13 16:51:59 UTC) #9
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 5 months ago (2016-07-13 17:57:11 UTC) #10
commit-bot: I haz the power
4 years, 5 months ago (2016-07-13 17:57:31 UTC) #12
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/22691e0d3273649a7bc5e6822e4c82f3b02ad5ae
Cr-Commit-Position: refs/heads/master@{#13467}

Powered by Google App Engine
This is Rietveld 408576698