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

Issue 1233963002: Fix accumulation error with front_timestamp, move test only code. (Closed)

Created:
5 years, 5 months ago by DaleCurtis
Modified:
5 years, 5 months ago
Reviewers:
jrummell, xhwang
CC:
chromium-reviews, feature-media-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix accumulation error with front_timestamp, move test only code. DCHECKs showed the front and back timestamps drifting by a few microseconds, likely due to repeated accumulation errors (since we're doing double*int64 -> repeated addition). I also cleaned up some code which was only used for tests to avoid accumulating unnused values in production. No new tests since code gen will affect the accumulation errors. BUG=481640 TEST=existing tests all pass. Committed: https://crrev.com/b53d11d580755daf0041232d5e094807d34f67ab Cr-Commit-Position: refs/heads/master@{#338726}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Remove unused vars. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+49 lines, -77 lines) Patch
M media/filters/audio_clock.h View 3 chunks +4 lines, -17 lines 0 comments Download
M media/filters/audio_clock.cc View 3 chunks +36 lines, -47 lines 0 comments Download
M media/filters/audio_clock_unittest.cc View 1 2 chunks +9 lines, -13 lines 0 comments Download

Messages

Total messages: 18 (7 generated)
DaleCurtis
Finally tracked down that dcheck :)
5 years, 5 months ago (2015-07-13 23:13:29 UTC) #2
xhwang
Great find! LGTM
5 years, 5 months ago (2015-07-14 06:17:25 UTC) #3
jrummell
lgtm https://codereview.chromium.org/1233963002/diff/1/media/filters/audio_clock_unittest.cc File media/filters/audio_clock_unittest.cc (right): https://codereview.chromium.org/1233963002/diff/1/media/filters/audio_clock_unittest.cc#newcode63 media/filters/audio_clock_unittest.cc:63: base::TimeDelta contiguous_audio_data_buffered_at_same_rate_; nit: I don't see these 2 ...
5 years, 5 months ago (2015-07-14 17:32:22 UTC) #4
DaleCurtis
Thanks for review! https://codereview.chromium.org/1233963002/diff/1/media/filters/audio_clock_unittest.cc File media/filters/audio_clock_unittest.cc (right): https://codereview.chromium.org/1233963002/diff/1/media/filters/audio_clock_unittest.cc#newcode63 media/filters/audio_clock_unittest.cc:63: base::TimeDelta contiguous_audio_data_buffered_at_same_rate_; On 2015/07/14 17:32:22, jrummell ...
5 years, 5 months ago (2015-07-14 17:33:59 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1233963002/20001
5 years, 5 months ago (2015-07-14 17:35:06 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: win8_chromium_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win8_chromium_ng/builds/16294)
5 years, 5 months ago (2015-07-14 17:57:25 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1233963002/20001
5 years, 5 months ago (2015-07-14 18:59:29 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: win8_chromium_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win8_chromium_ng/builds/16359)
5 years, 5 months ago (2015-07-14 19:20:29 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1233963002/20001
5 years, 5 months ago (2015-07-14 19:44:10 UTC) #16
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 5 months ago (2015-07-14 20:06:19 UTC) #17
commit-bot: I haz the power
5 years, 5 months ago (2015-07-14 20:07:23 UTC) #18
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/b53d11d580755daf0041232d5e094807d34f67ab
Cr-Commit-Position: refs/heads/master@{#338726}

Powered by Google App Engine
This is Rietveld 408576698