summaryrefslogtreecommitdiffstats
path: root/media/audio/alsa
diff options
context:
space:
mode:
authortommi@chromium.org <tommi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-12-18 23:37:51 +0000
committertommi@chromium.org <tommi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-12-18 23:37:51 +0000
commit05643d0f9575c171f13e7f30ea0f1d4520855f87 (patch)
tree8b06bb5488b99cbfc0e3e6af8b721b6627048f14 /media/audio/alsa
parent200c9187bd8029de9a6d4665082c7bf358c62829 (diff)
downloadchromium_src-05643d0f9575c171f13e7f30ea0f1d4520855f87.zip
chromium_src-05643d0f9575c171f13e7f30ea0f1d4520855f87.tar.gz
chromium_src-05643d0f9575c171f13e7f30ea0f1d4520855f87.tar.bz2
Remove an unused OnClose() method from AudioInputCallback.
BUG=328357 Review URL: https://codereview.chromium.org/107093010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@241703 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/audio/alsa')
-rw-r--r--media/audio/alsa/alsa_input.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/media/audio/alsa/alsa_input.cc b/media/audio/alsa/alsa_input.cc
index 9dcbf2b..bf31f51 100644
--- a/media/audio/alsa/alsa_input.cc
+++ b/media/audio/alsa/alsa_input.cc
@@ -245,6 +245,8 @@ void AlsaPcmInputStream::Stop() {
int error = wrapper_->PcmDrop(device_handle_);
if (error < 0)
HandleError("PcmDrop", error);
+
+ callback_ = NULL;
}
void AlsaPcmInputStream::Close() {
@@ -261,9 +263,6 @@ void AlsaPcmInputStream::Close() {
device_handle_ = NULL;
mixer_handle_ = NULL;
mixer_element_handle_ = NULL;
-
- if (callback_)
- callback_->OnClose(this);
}
audio_manager_->ReleaseInputStream(this);