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

Issue 2720183004: Fix rare race in ViEEncoderTest.UMACpuLimitedResolutionInPercent (Closed)

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

Description

Fix rare race in ViEEncoderTest.UMACpuLimitedResolutionInPercent The test aims to synchronize by waiting for the last sent frame, using sink_.WaitForEncodedFrame(). Then it stops the vie_encoder instance and finally reset the SendStatsProxy to trigger UMA stats to be registered. The problem is that the callback that triggers WaitForEncodedFrame() to release will call FrameSent() on the overuse detecter just after that, and so it may try to update the stats proxy while it is being deleted. To prevent this, simply destroy the vie_encoder instance too, so that we know that the task queue has been stopped. BUG=None Review-Url: https://codereview.webrtc.org/2720183004 Cr-Commit-Position: refs/heads/master@{#16914} Committed: https://chromium.googlesource.com/external/webrtc/+/f8ee65ead6e16cbb1c4311b9fd596a3435ec2f9a

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -1 line) Patch
M webrtc/video/vie_encoder_unittest.cc View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 8 (4 generated)
sprang_webrtc
3 years, 9 months ago (2017-02-28 09:53:57 UTC) #2
åsapersson
lgtm
3 years, 9 months ago (2017-02-28 15:52:02 UTC) #3
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/2720183004/1
3 years, 9 months ago (2017-02-28 16:01:58 UTC) #5
commit-bot: I haz the power
3 years, 9 months ago (2017-02-28 16:49:37 UTC) #8
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/external/webrtc/+/f8ee65ead6e16cbb1c4311b9f...

Powered by Google App Engine
This is Rietveld 408576698