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

Issue 10958004: Prevent AudioDeviceThread from starting if clients have called Stop() (round 2). (Closed)

Created:
8 years, 3 months ago by scherkus (not reviewing)
Modified:
8 years, 3 months ago
CC:
chromium-reviews, feature-media-reviews_chromium.org
Visibility:
Public.

Description

Prevent AudioDeviceThread from starting if clients have called Stop() (round 2). My first attempt at a fix (r157378) was no good as it's legal to repeatedly start and stop an AudioOutputDevice. This time around we use flag to track a pending stop so we don't start AudioDeviceThread knowing the client had requested a stop. BUG=147499 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=157841

Patch Set 1 #

Total comments: 18

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+90 lines, -58 lines) Patch
M media/audio/audio_output_device.h View 1 1 chunk +8 lines, -0 lines 0 comments Download
M media/audio/audio_output_device.cc View 1 4 chunks +21 lines, -2 lines 0 comments Download
M media/audio/audio_output_device_unittest.cc View 10 chunks +61 lines, -56 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
scherkus (not reviewing)
Can you take a look? I parameterized the unit tests to run both synchronized and ...
8 years, 3 months ago (2012-09-20 02:34:18 UTC) #1
henrika (OOO until Aug 14)
Thanks Andrew; it looks much better now. Ping me when landed and I'll test it ...
8 years, 3 months ago (2012-09-20 07:54:38 UTC) #2
henrika (OOO until Aug 14)
LGTM w/ nits. http://codereview.chromium.org/10958004/diff/1/media/audio/audio_output_device.cc File media/audio/audio_output_device.cc (right): http://codereview.chromium.org/10958004/diff/1/media/audio/audio_output_device.cc#newcode228 media/audio/audio_output_device.cc:228: // Stop() can stop |audio_thread_| before ...
8 years, 3 months ago (2012-09-20 07:54:52 UTC) #3
tommi (sloooow) - chröme
http://codereview.chromium.org/10958004/diff/1/media/audio/audio_output_device.cc File media/audio/audio_output_device.cc (right): http://codereview.chromium.org/10958004/diff/1/media/audio/audio_output_device.cc#newcode94 media/audio/audio_output_device.cc:94: stopping_ = true; instead of the variable, you can ...
8 years, 3 months ago (2012-09-20 15:00:22 UTC) #4
scherkus (not reviewing)
http://codereview.chromium.org/10958004/diff/1/media/audio/audio_output_device.cc File media/audio/audio_output_device.cc (right): http://codereview.chromium.org/10958004/diff/1/media/audio/audio_output_device.cc#newcode94 media/audio/audio_output_device.cc:94: stopping_ = true; On 2012/09/20 15:00:22, tommi wrote: > ...
8 years, 3 months ago (2012-09-20 17:48:28 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/scherkus@chromium.org/10958004/8001
8 years, 3 months ago (2012-09-20 18:19:40 UTC) #6
commit-bot: I haz the power
8 years, 3 months ago (2012-09-20 21:17:53 UTC) #7
Change committed as 157841

Powered by Google App Engine
This is Rietveld 408576698