summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChih-Wei Huang <cwhuang@linux.org.tw>2010-01-20 11:40:33 +0800
committerChih-Wei Huang <cwhuang@linux.org.tw>2010-01-20 11:45:03 +0800
commit609ff85d701103db878b7077fe020b2999e26bf4 (patch)
tree31592480e6b3f813c62b1640f933d17a29dd04f8
parent9dbd394caab7b86caa8d010abf77448f3b718683 (diff)
downloadalsa_sound-609ff85d701103db878b7077fe020b2999e26bf4.tar.gz
Fix bugs in AudioStreamInALSA::close() and AudioStreamOutALSA::close()
The methods should call the parent method ALSAStreamOps::close(), not call itself, which is an infinite recursive loop.
-rw-r--r--AudioStreamInALSA.cpp2
-rw-r--r--AudioStreamOutALSA.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/AudioStreamInALSA.cpp b/AudioStreamInALSA.cpp
index f645357..970dafd 100644
--- a/AudioStreamInALSA.cpp
+++ b/AudioStreamInALSA.cpp
@@ -121,7 +121,7 @@ status_t AudioStreamInALSA::close()
if (mHandle && aDev) aDev->cleanup(aDev);
- close();
+ ALSAStreamOps::close();
if (mPowerLock) {
release_wake_lock ("AudioInLock");
diff --git a/AudioStreamOutALSA.cpp b/AudioStreamOutALSA.cpp
index 8d19caa..781afbb 100644
--- a/AudioStreamOutALSA.cpp
+++ b/AudioStreamOutALSA.cpp
@@ -134,7 +134,7 @@ status_t AudioStreamOutALSA::close()
AutoMutex lock(mLock);
snd_pcm_drain (mHandle->handle);
- close();
+ ALSAStreamOps::close();
if (mPowerLock) {
release_wake_lock ("AudioOutLock");