diff options
author | Chih-Wei Huang <cwhuang@linux.org.tw> | 2010-01-20 11:40:33 +0800 |
---|---|---|
committer | Chih-Wei Huang <cwhuang@linux.org.tw> | 2010-01-20 11:45:03 +0800 |
commit | 609ff85d701103db878b7077fe020b2999e26bf4 (patch) | |
tree | 31592480e6b3f813c62b1640f933d17a29dd04f8 | |
parent | 9dbd394caab7b86caa8d010abf77448f3b718683 (diff) | |
download | alsa_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.cpp | 2 | ||||
-rw-r--r-- | AudioStreamOutALSA.cpp | 2 |
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"); |