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

Unified Diff: media/audio/cras/cras_input.cc

Issue 16286010: Removed the IsRecordingInProcess check for speech since it is not needed (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: removed unused error code and relevant resource, cleaned up include Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/audio/audio_output_proxy_unittest.cc ('k') | media/audio/linux/alsa_input.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/cras/cras_input.cc
diff --git a/media/audio/cras/cras_input.cc b/media/audio/cras/cras_input.cc
index c080ac6b3e6586954eadce197f0374e05b5665e6..f5f8205194578d3936e2baca71609b19853f92e7 100644
--- a/media/audio/cras/cras_input.cc
+++ b/media/audio/cras/cras_input.cc
@@ -150,9 +150,7 @@ void CrasInputStream::Start(AudioInputCallback* callback) {
bytes_per_frame_ = cras_client_format_bytes_per_frame(audio_format);
// Adding the stream will start the audio callbacks.
- if (cras_client_add_stream(client_, &stream_id_, stream_params) == 0) {
- audio_manager_->IncreaseActiveInputStreamCount();
- } else {
+ if (cras_client_add_stream(client_, &stream_id_, stream_params)) {
DLOG(WARNING) << "Failed to add the stream.";
callback_->OnError(this);
callback_ = NULL;
@@ -176,8 +174,6 @@ void CrasInputStream::Stop() {
// Removing the stream from the client stops audio.
cras_client_rm_stream(client_, stream_id_);
- audio_manager_->DecreaseActiveInputStreamCount();
-
started_ = false;
}
« no previous file with comments | « media/audio/audio_output_proxy_unittest.cc ('k') | media/audio/linux/alsa_input.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698