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

Issue 11744026: Add guard to OpenSLESOutputStream::FillBufferQueue() to respect shutdown conditions. (Closed)

Created:
7 years, 11 months ago by miu
Modified:
7 years, 11 months ago
CC:
chromium-reviews, feature-media-reviews_chromium.org
Visibility:
Public.

Description

Add guard to OpenSLESOutputStream::FillBufferQueue() to respect shutdown conditions. There's a race condition between the audio shutdown process and calls to OnMoreData() (in FillBufferQueue()). During shutdown, or after an error occurs within AudioOutputController, OnMoreData() can return 0 to indicate "no data." In this case, FillBufferQueue() should not attempt to call simple_buffer_queue_->Enqueue() with a "zero bytes" argument, which is an invalid argument value. Also changed a DLOG(FATAL) to DLOG(ERROR), per Chromium style guidelines, since there is code that explicitly handles the event after the log statement. BUG=168260 TEST=build/android/run_tests.py -s media_unittests -f *PlayStateChangeClose* TBR=tommi@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=175107

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -1 line) Patch
M media/audio/android/opensles_output.cc View 2 chunks +3 lines, -1 line 0 comments Download

Messages

Total messages: 8 (0 generated)
miu
Fix for flaky AudioOutputController tests on Android platforms. PTAL. Thanks, Yuri
7 years, 11 months ago (2013-01-03 23:38:17 UTC) #1
Ted C
lgtm
7 years, 11 months ago (2013-01-03 23:39:50 UTC) #2
Ted C
On 2013/01/03 23:39:50, Ted C wrote: > lgtm I patched in this change and ran ...
7 years, 11 months ago (2013-01-04 00:04:26 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/miu@chromium.org/11744026/1
7 years, 11 months ago (2013-01-04 00:07:46 UTC) #4
miu
tommi: FYI--Submitted with you as TBR since the bug was causing Android test flakiness in ...
7 years, 11 months ago (2013-01-04 00:09:25 UTC) #5
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) browser_tests
7 years, 11 months ago (2013-01-04 03:31:57 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/miu@chromium.org/11744026/1
7 years, 11 months ago (2013-01-04 04:06:29 UTC) #7
commit-bot: I haz the power
7 years, 11 months ago (2013-01-04 05:19:17 UTC) #8
Message was sent while issue was closed.
Change committed as 175107

Powered by Google App Engine
This is Rietveld 408576698