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

Issue 2757923004: Fix failed capture handling in WebrtcVideoStream (Closed)

Created:
3 years, 9 months ago by Sergey Ulanov
Modified:
3 years, 9 months ago
Reviewers:
Jamie
CC:
chromium-reviews, posciak+watch_chromium.org, chromoting-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix failed capture handling in WebrtcVideoStream Previously, when a capture request fails, WebrtcVideoStream was saving the corresponding event timestamp and then reusing it for the following frame. That logic was implemented incorrectly - it worked properly only when key_frame_request_ is set. This caused the test to fail under MSAN as the key_frame_request_ is set with a delay. It's questionable if that logic is useful, so this CL removes it together with the corresponding test. Also improved handling of failed captures in WebrtcFrameSchedulerSimple. BUG=697178 Review-Url: https://codereview.chromium.org/2757923004 Cr-Commit-Position: refs/heads/master@{#458569} Committed: https://chromium.googlesource.com/chromium/src/+/5e372bf6de94cb418ab952d9e33d2cfa0269e987

Patch Set 1 #

Total comments: 2

Patch Set 2 : add comment #

Patch Set 3 : . #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -50 lines) Patch
M remoting/protocol/connection_unittest.cc View 1 2 1 chunk +0 lines, -26 lines 0 comments Download
M remoting/protocol/webrtc_frame_scheduler_simple.h View 1 chunk +5 lines, -0 lines 0 comments Download
M remoting/protocol/webrtc_frame_scheduler_simple.cc View 1 1 chunk +13 lines, -5 lines 2 comments Download
M remoting/protocol/webrtc_video_stream.h View 1 2 1 chunk +0 lines, -5 lines 0 comments Download
M remoting/protocol/webrtc_video_stream.cc View 1 2 2 chunks +2 lines, -14 lines 0 comments Download

Messages

Total messages: 18 (9 generated)
Sergey Ulanov
3 years, 9 months ago (2017-03-18 01:24:11 UTC) #2
Jamie
https://codereview.chromium.org/2757923004/diff/1/remoting/protocol/webrtc_frame_scheduler_simple.cc File remoting/protocol/webrtc_frame_scheduler_simple.cc (right): https://codereview.chromium.org/2757923004/diff/1/remoting/protocol/webrtc_frame_scheduler_simple.cc#newcode184 remoting/protocol/webrtc_frame_scheduler_simple.cc:184: if (!resend_last_frame) { This is pretty complicated logic. I ...
3 years, 9 months ago (2017-03-18 01:53:26 UTC) #3
Sergey Ulanov
https://codereview.chromium.org/2757923004/diff/1/remoting/protocol/webrtc_frame_scheduler_simple.cc File remoting/protocol/webrtc_frame_scheduler_simple.cc (right): https://codereview.chromium.org/2757923004/diff/1/remoting/protocol/webrtc_frame_scheduler_simple.cc#newcode184 remoting/protocol/webrtc_frame_scheduler_simple.cc:184: if (!resend_last_frame) { On 2017/03/18 01:53:26, Jamie wrote: > ...
3 years, 9 months ago (2017-03-20 18:24:14 UTC) #5
Sergey Ulanov
Simplified this CL as we discussed. PTAL
3 years, 9 months ago (2017-03-21 00:25:54 UTC) #7
Jamie
Could you please also rephrase the second paragraph of the CL description? It looks like ...
3 years, 9 months ago (2017-03-21 18:33:36 UTC) #8
Sergey Ulanov
Updated description https://codereview.chromium.org/2757923004/diff/60001/remoting/protocol/webrtc_frame_scheduler_simple.cc File remoting/protocol/webrtc_frame_scheduler_simple.cc (right): https://codereview.chromium.org/2757923004/diff/60001/remoting/protocol/webrtc_frame_scheduler_simple.cc#newcode187 remoting/protocol/webrtc_frame_scheduler_simple.cc:187: captured_first_frame_ && (top_off_is_active_ || key_frame_request_); On 2017/03/21 ...
3 years, 9 months ago (2017-03-21 19:40:26 UTC) #12
Jamie
lgtm
3 years, 9 months ago (2017-03-21 21:09:41 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2757923004/60001
3 years, 9 months ago (2017-03-21 21:12:23 UTC) #15
commit-bot: I haz the power
3 years, 9 months ago (2017-03-21 21:57:19 UTC) #18
Message was sent while issue was closed.
Committed patchset #3 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/5e372bf6de94cb418ab952d9e33d...

Powered by Google App Engine
This is Rietveld 408576698