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

Issue 9834098: fix crash in AUAudioOutputStream::Render() (Closed)

Created:
8 years, 9 months ago by no longer working on chromium
Modified:
8 years, 8 months ago
Reviewers:
Chris Rogers
CC:
chromium-reviews, feature-media-reviews_chromium.org
Visibility:
Public.

Description

AUAudioOutputStream::Stop() first sets the source_ to NULL then calls AudioOutputUnitStop(), since AudioOutputUnitStop() is called by AudioManager thread, it will do a synchronous stop which means that AUAudioOutputStream::Render() will keep running until it is done. so that it crashes when it hits source_ which has been set to NULL. The solution is to stop the HAL first and then set the source_ to NULL. BUG=120193 TEST=None TAB=tommi Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=129590

Patch Set 1 #

Total comments: 5

Patch Set 2 : addressed Chris's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -2 lines) Patch
M media/audio/mac/audio_low_latency_output_mac.h View 1 chunk +3 lines, -0 lines 0 comments Download
M media/audio/mac/audio_low_latency_output_mac.cc View 1 3 chunks +8 lines, -2 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
no longer working on chromium
Chris, could you please take a look at it?
8 years, 9 months ago (2012-03-27 10:59:17 UTC) #1
no longer working on chromium
https://chromiumcodereview.appspot.com/9834098/diff/1/media/audio/mac/audio_low_latency_output_mac.cc File media/audio/mac/audio_low_latency_output_mac.cc (right): https://chromiumcodereview.appspot.com/9834098/diff/1/media/audio/mac/audio_low_latency_output_mac.cc#newcode221 media/audio/mac/audio_low_latency_output_mac.cc:221: if (stopped_) I don't use atomic operation here since ...
8 years, 9 months ago (2012-03-27 11:01:32 UTC) #2
no longer working on chromium
Ping. Hi Chris, do you have time to take a look it? BR, /SX On ...
8 years, 9 months ago (2012-03-28 11:31:13 UTC) #3
Chris Rogers
LGTM with small comments below Thanks for fixing this - this is great! https://chromiumcodereview.appspot.com/9834098/diff/1/media/audio/mac/audio_low_latency_output_mac.cc File ...
8 years, 9 months ago (2012-03-28 18:55:10 UTC) #4
no longer working on chromium
https://chromiumcodereview.appspot.com/9834098/diff/1/media/audio/mac/audio_low_latency_output_mac.cc File media/audio/mac/audio_low_latency_output_mac.cc (right): https://chromiumcodereview.appspot.com/9834098/diff/1/media/audio/mac/audio_low_latency_output_mac.cc#newcode194 media/audio/mac/audio_low_latency_output_mac.cc:194: stopped_ = true; On 2012/03/28 18:55:10, Chris Rogers wrote: ...
8 years, 9 months ago (2012-03-28 19:25:31 UTC) #5
Chris Rogers
Thanks Shijing, still LGTM. By the way, this is an important enough crash fix that ...
8 years, 9 months ago (2012-03-28 19:52:16 UTC) #6
no longer working on chromium
sure things. definitely, i will merge it to the release branch. sx On Mar 28, ...
8 years, 9 months ago (2012-03-28 20:00:20 UTC) #7
commit-bot: I haz the power
8 years, 8 months ago (2012-03-29 07:39:49 UTC) #8
No LGTM from a valid reviewer yet. Only full committers are accepted.
Even if an LGTM may have been provided, it was from a non-committer or
a lowly provisional committer, _not_ a full super star committer.
See http://www.chromium.org/getting-involved/become-a-committer
Note that this has nothing to do with OWNERS files.

Powered by Google App Engine
This is Rietveld 408576698