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

Issue 417753002: Fix a race condition in MediaStreamAudioTrackHost. (Closed)

Created:
6 years, 5 months ago by Peng
Modified:
6 years, 4 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam
Project:
chromium
Visibility:
Public.

Description

Fix a race condition in MediaStreamAudioTrackHost. In MediaStreamAudioTrackHost, the audio buffer is filled with audio data in an audio thread, and it is sent to plugin in the main thread, but the buffer may become invalid between filling and sending. It crashes chrome. This patch fixes this issue. BUG=396395 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=286057

Patch Set 1 : Upload #

Total comments: 7

Patch Set 2 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -17 lines) Patch
M chrome/test/ppapi/ppapi_browsertest.cc View 1 chunk +1 line, -2 lines 0 comments Download
M content/renderer/pepper/pepper_media_stream_audio_track_host.h View 1 2 chunks +7 lines, -2 lines 0 comments Download
M content/renderer/pepper/pepper_media_stream_audio_track_host.cc View 1 5 chunks +27 lines, -13 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Peng
Hi David, PTAL. Thanks.
6 years, 5 months ago (2014-07-23 20:19:03 UTC) #1
dmichael (off chromium)
amistry@, would you be willing to look at this since you're very familiar with the ...
6 years, 5 months ago (2014-07-24 16:42:56 UTC) #2
Anand Mistry (off Chromium)
https://codereview.chromium.org/417753002/diff/40001/content/renderer/pepper/pepper_media_stream_audio_track_host.cc File content/renderer/pepper/pepper_media_stream_audio_track_host.cc (right): https://codereview.chromium.org/417753002/diff/40001/content/renderer/pepper/pepper_media_stream_audio_track_host.cc#newcode145 content/renderer/pepper/pepper_media_stream_audio_track_host.cc:145: // so we don't need lock |lock_| here (main ...
6 years, 5 months ago (2014-07-25 00:42:54 UTC) #3
Peng
https://codereview.chromium.org/417753002/diff/40001/content/renderer/pepper/pepper_media_stream_audio_track_host.cc File content/renderer/pepper/pepper_media_stream_audio_track_host.cc (right): https://codereview.chromium.org/417753002/diff/40001/content/renderer/pepper/pepper_media_stream_audio_track_host.cc#newcode120 content/renderer/pepper/pepper_media_stream_audio_track_host.cc:120: // We don't need hold |lock_| during |host->InitBuffers()| call, ...
6 years, 5 months ago (2014-07-25 15:25:31 UTC) #4
Anand Mistry (off Chromium)
On 2014/07/25 15:25:31, Peng wrote: > https://codereview.chromium.org/417753002/diff/40001/content/renderer/pepper/pepper_media_stream_audio_track_host.cc > File content/renderer/pepper/pepper_media_stream_audio_track_host.cc (right): > > https://codereview.chromium.org/417753002/diff/40001/content/renderer/pepper/pepper_media_stream_audio_track_host.cc#newcode120 > ...
6 years, 5 months ago (2014-07-26 06:18:59 UTC) #5
dmichael (off chromium)
lgtm https://codereview.chromium.org/417753002/diff/40001/content/renderer/pepper/pepper_media_stream_audio_track_host.cc File content/renderer/pepper/pepper_media_stream_audio_track_host.cc (right): https://codereview.chromium.org/417753002/diff/40001/content/renderer/pepper/pepper_media_stream_audio_track_host.cc#newcode145 content/renderer/pepper/pepper_media_stream_audio_track_host.cc:145: // so we don't need lock |lock_| here ...
6 years, 4 months ago (2014-07-28 19:30:43 UTC) #6
Peng
The CQ bit was checked by penghuang@chromium.org
6 years, 4 months ago (2014-07-28 19:42:28 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/penghuang@chromium.org/417753002/80001
6 years, 4 months ago (2014-07-28 20:36:02 UTC) #8
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_chromium_clang_dbg on tryserver.chromium.linux ...
6 years, 4 months ago (2014-07-29 00:13:02 UTC) #9
commit-bot: I haz the power
6 years, 4 months ago (2014-07-29 02:52:08 UTC) #10
Message was sent while issue was closed.
Change committed as 286057

Powered by Google App Engine
This is Rietveld 408576698