Index: media/audio/linux/alsa_input.cc |
diff --git a/media/audio/linux/alsa_input.cc b/media/audio/linux/alsa_input.cc |
index ce337d335cb3983368929edae4118253b10c26e6..bbbee050fd100ee3686fe326561a620e4d6f35e0 100644 |
--- a/media/audio/linux/alsa_input.cc |
+++ b/media/audio/linux/alsa_input.cc |
@@ -124,8 +124,6 @@ void AlsaPcmInputStream::Start(AudioInputCallback* callback) { |
FROM_HERE, |
base::Bind(&AlsaPcmInputStream::ReadAudio, weak_factory_.GetWeakPtr()), |
delay); |
- |
- audio_manager_->IncreaseActiveInputStreamCount(); |
} |
} |
@@ -243,10 +241,6 @@ void AlsaPcmInputStream::Stop() { |
StopAgc(); |
- // Stop is always called before Close. In case of error, this will be |
- // also called when closing the input controller. |
- audio_manager_->DecreaseActiveInputStreamCount(); |
- |
weak_factory_.InvalidateWeakPtrs(); // Cancel the next scheduled read. |
int error = wrapper_->PcmDrop(device_handle_); |
if (error < 0) |