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

Issue 8680009: Call close_timer_.Reset() from StopStreamTask. (Closed)

Created:
9 years, 1 month ago by Reid Kleckner (google)
Modified:
9 years, 1 month ago
Reviewers:
Sergey Ulanov
CC:
chromium-reviews, hclam+watch_chromium.org, ddorwin+watch_chromium.org, fischman+watch_chromium.org, acolwell+watch_chromium.org, annacc+watch_chromium.org, vrk (LEFT CHROMIUM), scherkus (not reviewing), ihf+watch_chromium.org, drmemory-team_google.com, enal, henrika (OOO until Aug 14), Chris Rogers
Visibility:
Public.

Description

Call close_timer_.Reset() from StopStreamTask. There is a race here if ClosePendingStreams() is called before StopStreamTask. The stream added to idle_streams_ will stay there forever unless we reset the timer. This test fails when run locally under tsan and on the drmemory bots here: http://build.chromium.org/p/chromium.fyi/builders/Windows%20Tests%20%28DrMemory%20Win%207%29/builds/1402/steps/memory%20test%3A%20media BUG=105124 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=111545

Patch Set 1 #

Total comments: 2

Patch Set 2 : '' #

Total comments: 6

Patch Set 3 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -4 lines) Patch
M media/audio/audio_output_dispatcher.cc View 1 2 chunks +1 line, -1 line 0 comments Download
M media/audio/audio_output_proxy_unittest.cc View 1 2 3 chunks +11 lines, -3 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
Reid Kleckner (google)
PTAL
9 years, 1 month ago (2011-11-23 15:11:59 UTC) #1
Reid Kleckner (google)
On 2011/11/23 15:11:59, Reid Kleckner (google) wrote: > PTAL Hang on, other media_unittests are failing. ...
9 years, 1 month ago (2011-11-23 16:00:27 UTC) #2
Reid Kleckner (google)
On 2011/11/23 16:00:27, Reid Kleckner (google) wrote: > On 2011/11/23 15:11:59, Reid Kleckner (google) wrote: ...
9 years, 1 month ago (2011-11-23 16:45:50 UTC) #3
Sergey Ulanov
LGTM if my comment is addressed. http://codereview.chromium.org/8680009/diff/1/media/audio/audio_output_dispatcher.cc File media/audio/audio_output_dispatcher.cc (right): http://codereview.chromium.org/8680009/diff/1/media/audio/audio_output_dispatcher.cc#newcode72 media/audio/audio_output_dispatcher.cc:72: close_timer_.Reset(); I think ...
9 years, 1 month ago (2011-11-23 18:07:57 UTC) #4
Reid Kleckner (google)
I realized that StopStreamTask is posted with a delay of pause_delay_milliseconds_, so I had to ...
9 years, 1 month ago (2011-11-23 18:40:44 UTC) #5
Sergey Ulanov
still LGTM, but please see my nits. http://codereview.chromium.org/8680009/diff/4002/media/audio/audio_output_proxy_unittest.cc File media/audio/audio_output_proxy_unittest.cc (right): http://codereview.chromium.org/8680009/diff/4002/media/audio/audio_output_proxy_unittest.cc#newcode195 media/audio/audio_output_proxy_unittest.cc:195: // Wait ...
9 years, 1 month ago (2011-11-23 19:12:17 UTC) #6
Reid Kleckner (google)
Sending to CQ, thanks for the review! http://codereview.chromium.org/8680009/diff/4002/media/audio/audio_output_proxy_unittest.cc File media/audio/audio_output_proxy_unittest.cc (right): http://codereview.chromium.org/8680009/diff/4002/media/audio/audio_output_proxy_unittest.cc#newcode195 media/audio/audio_output_proxy_unittest.cc:195: // Wait ...
9 years, 1 month ago (2011-11-23 19:23:04 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rnk@google.com/8680009/7001
9 years, 1 month ago (2011-11-23 19:23:04 UTC) #8
scherkus (not reviewing)
+enal, henrika, crogers for CC
9 years, 1 month ago (2011-11-23 19:50:33 UTC) #9
commit-bot: I haz the power
Try job failure for 8680009-7001 (retry) on mac_rel for step "media_unittests". It's a second try, ...
9 years, 1 month ago (2011-11-23 21:26:18 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rnk@google.com/8680009/7001
9 years, 1 month ago (2011-11-24 17:06:23 UTC) #11
commit-bot: I haz the power
9 years, 1 month ago (2011-11-24 18:43:54 UTC) #12
Change committed as 111545

Powered by Google App Engine
This is Rietveld 408576698