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

Issue 12220063: Possible solution to synchronization problems in webrtc audio capturer. (Closed)

Created:
7 years, 10 months ago by phoglund_chromium
Modified:
7 years, 10 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, feature-media-reviews_chromium.org
Visibility:
Public.

Description

Possible solution to synchronization problems in webrtc audio capturer. This will hold on to a reference to the buffer while the buffer is being used by WebRTC. I also tried to fix the places where synchronization was missing (mostly for the params_ instance). Let me know if you want an offline explanation! BUG=173987 TESTED=content_unittests on win and linux, chrome + apprtc on win and linux, release-built chrome with asan on original crashing test page. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=181929

Patch Set 1 #

Total comments: 10

Patch Set 2 : Attempt with scoped_refptr #

Patch Set 3 : Rebased #

Total comments: 21

Patch Set 4 : Moved responsibility to the buffer class; moved params and init code in #

Patch Set 5 : Tweaking #

Patch Set 6 : Fixed potential update issues #

Total comments: 14

Patch Set 7 : Made params accessor return as value, fixed refptr compilation error in release, cleaned up reconfi… #

Patch Set 8 : Fixed comment #

Total comments: 8

Patch Set 9 : Nit fixes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+109 lines, -48 lines) Patch
M content/renderer/media/webrtc_audio_capturer.h View 1 2 3 4 5 6 7 8 3 chunks +13 lines, -7 lines 0 comments Download
M content/renderer/media/webrtc_audio_capturer.cc View 1 2 3 4 5 6 7 8 9 chunks +95 lines, -40 lines 0 comments Download
M content/renderer/media/webrtc_local_audio_renderer.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 18 (0 generated)
phoglund_chromium
I have a possible solution to https://code.google.com/p/chromium/issues/detail?id=173987. Let's discuss it and then move to main ...
7 years, 10 months ago (2013-02-07 14:03:18 UTC) #1
henrika (OOO until Aug 14)
Thanks for looking at this but we can't add 70+ lines of code for this. ...
7 years, 10 months ago (2013-02-07 14:14:29 UTC) #2
henrika (OOO until Aug 14)
Adding Tommmi as well. Tommi: to me it just feels bad to add so much ...
7 years, 10 months ago (2013-02-07 14:36:06 UTC) #3
phoglund_chromium
On 2013/02/07 14:36:06, henrika wrote: > Adding Tommmi as well. > > Tommi: to me ...
7 years, 10 months ago (2013-02-07 14:39:26 UTC) #4
tommi (sloooow) - chröme
https://codereview.chromium.org/12220063/diff/1/content/renderer/media/webrtc_audio_capturer.cc File content/renderer/media/webrtc_audio_capturer.cc (right): https://codereview.chromium.org/12220063/diff/1/content/renderer/media/webrtc_audio_capturer.cc#newcode75 content/renderer/media/webrtc_audio_capturer.cc:75: // Ignored since the audio stack uses float32. s/Ignored/bits_per_sample ...
7 years, 10 months ago (2013-02-07 14:57:46 UTC) #5
tommi (sloooow) - chröme
https://codereview.chromium.org/12220063/diff/8001/content/renderer/media/webrtc_audio_capturer.cc File content/renderer/media/webrtc_audio_capturer.cc (right): https://codereview.chromium.org/12220063/diff/8001/content/renderer/media/webrtc_audio_capturer.cc#newcode66 content/renderer/media/webrtc_audio_capturer.cc:66: scoped_array<int16> buffer_; we're deprecating scoped_array and use scoped_ptr instead. ...
7 years, 10 months ago (2013-02-08 14:56:57 UTC) #6
phoglund_chromium
PTAL https://codereview.chromium.org/12220063/diff/8001/content/renderer/media/webrtc_audio_capturer.cc File content/renderer/media/webrtc_audio_capturer.cc (right): https://codereview.chromium.org/12220063/diff/8001/content/renderer/media/webrtc_audio_capturer.cc#newcode66 content/renderer/media/webrtc_audio_capturer.cc:66: scoped_array<int16> buffer_; On 2013/02/08 14:56:57, tommi wrote: > ...
7 years, 10 months ago (2013-02-08 16:10:38 UTC) #7
tommi (sloooow) - chröme
https://codereview.chromium.org/12220063/diff/8001/content/renderer/media/webrtc_audio_capturer.cc File content/renderer/media/webrtc_audio_capturer.cc (right): https://codereview.chromium.org/12220063/diff/8001/content/renderer/media/webrtc_audio_capturer.cc#newcode67 content/renderer/media/webrtc_audio_capturer.cc:67: }; On 2013/02/08 16:10:38, phoglund wrote: > On 2013/02/08 ...
7 years, 10 months ago (2013-02-08 16:32:04 UTC) #8
phoglund_chromium
PTAL https://codereview.chromium.org/12220063/diff/4003/content/renderer/media/webrtc_audio_capturer.cc File content/renderer/media/webrtc_audio_capturer.cc (right): https://codereview.chromium.org/12220063/diff/4003/content/renderer/media/webrtc_audio_capturer.cc#newcode90 content/renderer/media/webrtc_audio_capturer.cc:90: scoped_ptr<int16[]> buffer_; On 2013/02/08 16:32:04, tommi wrote: > ...
7 years, 10 months ago (2013-02-08 17:06:00 UTC) #9
tommi (sloooow) - chröme
lgtm https://codereview.chromium.org/12220063/diff/5004/content/renderer/media/webrtc_audio_capturer.cc File content/renderer/media/webrtc_audio_capturer.cc (right): https://codereview.chromium.org/12220063/diff/5004/content/renderer/media/webrtc_audio_capturer.cc#newcode93 content/renderer/media/webrtc_audio_capturer.cc:93: scoped_ptr<int16[]> buffer_; ah, thanks. I didn't know about ...
7 years, 10 months ago (2013-02-08 20:00:39 UTC) #10
phoglund_chromium
https://codereview.chromium.org/12220063/diff/5004/content/renderer/media/webrtc_audio_capturer.cc File content/renderer/media/webrtc_audio_capturer.cc (right): https://codereview.chromium.org/12220063/diff/5004/content/renderer/media/webrtc_audio_capturer.cc#newcode93 content/renderer/media/webrtc_audio_capturer.cc:93: scoped_ptr<int16[]> buffer_; On 2013/02/08 20:00:39, tommi wrote: > ah, ...
7 years, 10 months ago (2013-02-11 09:18:56 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/phoglund@chromium.org/12220063/12004
7 years, 10 months ago (2013-02-11 09:19:10 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/phoglund@chromium.org/12220063/12004
7 years, 10 months ago (2013-02-11 10:49:21 UTC) #13
commit-bot: I haz the power
The commit queue went berserk retrying too often for a seemingly flaky test. Builder is ...
7 years, 10 months ago (2013-02-11 18:16:28 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/phoglund@chromium.org/12220063/12004
7 years, 10 months ago (2013-02-11 18:40:47 UTC) #15
commit-bot: I haz the power
The commit queue went berserk retrying too often for a seemingly flaky test. Builder is ...
7 years, 10 months ago (2013-02-11 23:52:44 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/phoglund@chromium.org/12220063/12004
7 years, 10 months ago (2013-02-11 23:57:40 UTC) #17
tommi (sloooow) - chröme
7 years, 10 months ago (2013-02-11 23:57:55 UTC) #18
Hmm... the android_dbg_triggered_tests bot keeps preventing the change from
going in.  Annoyingly it doesn't seem to always fail the same way.
I'm checking the box one more time but if it fails yet again for an
unrelated reason, I think we need to land this manually.


On Tue, Feb 12, 2013 at 12:52 AM, <commit-bot@chromium.org> wrote:

> The commit queue went berserk retrying too often for a
> seemingly flaky test. Builder is android_dbg, revision is HEAD
>
>
https://chromiumcodereview.**appspot.com/12220063/<https://chromiumcodereview...
>

Powered by Google App Engine
This is Rietveld 408576698