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

Issue 12310102: Change GetVolume() to be asynchronous when being called by pulse thread (Closed)

Created:
7 years, 10 months ago by no longer working on chromium
Modified:
7 years, 10 months ago
Reviewers:
DaleCurtis
CC:
chromium-reviews, feature-media-reviews_chromium.org
Visibility:
Public.

Description

This patch changes GetVolume() to be asynchronous when being called by pulse thread. Pulseaudio does not allow calling pa_threaded_mainloop_lock() and pa_threaded_mainloop_wait() in its callback thread. So the GetVolume() has to be asynchronous when being called in the pulse thread, and synchronous when being called by other threads. BUG=178057 TEST=enable pulse, and make a call using https://webrtc-demos.appspot.com/html/pc1.html Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=184629

Patch Set 1 #

Total comments: 4

Patch Set 2 : updated the comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -9 lines) Patch
M content/renderer/media/webrtc_audio_device_impl.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M media/audio/pulse/pulse.sigs View 1 chunk +1 line, -0 lines 0 comments Download
M media/audio/pulse/pulse_input.cc View 1 3 chunks +30 lines, -7 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
no longer working on chromium
Dale, could you please review this CL?
7 years, 10 months ago (2013-02-25 12:36:32 UTC) #1
DaleCurtis
lgtm % comment nits. https://codereview.chromium.org/12310102/diff/1/media/audio/pulse/pulse_input.cc File media/audio/pulse/pulse_input.cc (right): https://codereview.chromium.org/12310102/diff/1/media/audio/pulse/pulse_input.cc#newcode281 media/audio/pulse/pulse_input.cc:281: stream->volume_ = static_cast<double>(volume); I'd add ...
7 years, 10 months ago (2013-02-25 18:52:18 UTC) #2
no longer working on chromium
Thanks Dale, I am going to land it now. https://codereview.chromium.org/12310102/diff/1/media/audio/pulse/pulse_input.cc File media/audio/pulse/pulse_input.cc (right): https://codereview.chromium.org/12310102/diff/1/media/audio/pulse/pulse_input.cc#newcode281 media/audio/pulse/pulse_input.cc:281: ...
7 years, 10 months ago (2013-02-26 12:02:51 UTC) #3
no longer working on chromium
7 years, 10 months ago (2013-02-26 12:05:51 UTC) #4
Message was sent while issue was closed.
Committed patchset #2 manually as r184629 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698