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; |
} |