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

Issue 2133703002: Fixes crash in AudioManagerMac at shutdown (Closed)

Created:
4 years, 5 months ago by henrika (OOO until Aug 14)
Modified:
4 years, 5 months ago
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

Fixes crash in AudioManagerMac at shutdown. Takes a copy of the list of input streams before deleting the stream. The reason is that when a stream is deleted it also removes itself from the list and we are iterating over that same list. Should be resolved by taking a copy of the list first. BUG=626512 Committed: https://crrev.com/fe1a694e498267bfa2597f5db820148f4eb38bd6 Cr-Commit-Position: refs/heads/master@{#404349}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Improved comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -2 lines) Patch
M media/audio/mac/audio_manager_mac.cc View 1 1 chunk +5 lines, -2 lines 0 comments Download

Messages

Total messages: 14 (7 generated)
henrika (OOO until Aug 14)
PTAL
4 years, 5 months ago (2016-07-08 11:46:54 UTC) #3
tommi (sloooow) - chröme
lgtm https://codereview.chromium.org/2133703002/diff/1/media/audio/mac/audio_manager_mac.cc File media/audio/mac/audio_manager_mac.cc (right): https://codereview.chromium.org/2133703002/diff/1/media/audio/mac/audio_manager_mac.cc#newcode393 media/audio/mac/audio_manager_mac.cc:393: auto low_latency_input_streams_copy = low_latency_input_streams_; nit: add a comment ...
4 years, 5 months ago (2016-07-08 12:07:00 UTC) #5
henrika (OOO until Aug 14)
Done. Landing. https://codereview.chromium.org/2133703002/diff/1/media/audio/mac/audio_manager_mac.cc File media/audio/mac/audio_manager_mac.cc (right): https://codereview.chromium.org/2133703002/diff/1/media/audio/mac/audio_manager_mac.cc#newcode393 media/audio/mac/audio_manager_mac.cc:393: auto low_latency_input_streams_copy = low_latency_input_streams_; Good idea, thanks!
4 years, 5 months ago (2016-07-08 12:19:38 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2133703002/20001
4 years, 5 months ago (2016-07-08 12:20:38 UTC) #9
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 5 months ago (2016-07-08 14:05:06 UTC) #11
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-08 14:05:28 UTC) #12
commit-bot: I haz the power
4 years, 5 months ago (2016-07-08 14:06:30 UTC) #14
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/fe1a694e498267bfa2597f5db820148f4eb38bd6
Cr-Commit-Position: refs/heads/master@{#404349}

Powered by Google App Engine
This is Rietveld 408576698