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

Issue 2506173003: Changed the interface AudioMixer::RemoveSource to have a void return type. (Closed)

Created:
4 years, 1 month ago by aleloi
Modified:
4 years, 1 month ago
Reviewers:
kwiberg-webrtc
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com, hlundin-webrtc
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Changed the interface AudioMixer::RemoveSource to have a void return type. In the AudioMixerImpl implementation, removing a source never fails and the return value is always true (see audio_mixer/audio_mixer_impl.cc). A return value of |false| signaled that removing a source failed for some reason. We have come to the conclusion that * we don't know how to handle a return value of |false| * we can't think of why an alternative implementation would need to signal failure when removing a stream. To avoid having a status code that is never read, never acted upon and probably never set to anything but |true|, we change ::RemoveSource to not have a return value. NOTRY=True BUG=webrtc:6346 Committed: https://crrev.com/76b3049e7c0cb6ec1c7bb741a83f71a5e791fbaf Cr-Commit-Position: refs/heads/master@{#15150}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Updated doc comment for Add/Remove Source. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -8 lines) Patch
M webrtc/api/audio/audio_mixer.h View 1 1 chunk +6 lines, -5 lines 0 comments Download
M webrtc/modules/audio_mixer/audio_mixer_impl.h View 1 chunk +1 line, -1 line 0 comments Download
M webrtc/modules/audio_mixer/audio_mixer_impl.cc View 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 11 (6 generated)
aleloi
Small one. Please take a look!
4 years, 1 month ago (2016-11-17 18:04:54 UTC) #2
kwiberg-webrtc
lgtm, but see comment https://codereview.webrtc.org/2506173003/diff/1/webrtc/api/audio/audio_mixer.h File webrtc/api/audio/audio_mixer.h (right): https://codereview.webrtc.org/2506173003/diff/1/webrtc/api/audio/audio_mixer.h#newcode57 webrtc/api/audio/audio_mixer.h:57: // on different threads. It ...
4 years, 1 month ago (2016-11-18 02:10:12 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2506173003/20001
4 years, 1 month ago (2016-11-18 10:01:49 UTC) #7
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 1 month ago (2016-11-18 10:03:06 UTC) #9
commit-bot: I haz the power
4 years, 1 month ago (2016-11-18 10:03:17 UTC) #11
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/76b3049e7c0cb6ec1c7bb741a83f71a5e791fbaf
Cr-Commit-Position: refs/heads/master@{#15150}

Powered by Google App Engine
This is Rietveld 408576698