Fix problem in A2DP interface closeOutputStream().

If the output stream handler passed was not the A2DP output stream, the request was ignored instead of being forwarded downstream to hardware interface.
This commit is contained in:
Eric Laurent
2009-08-04 07:43:10 -07:00
parent cd9e8d4907
commit 351def28f0

View File

@@ -89,7 +89,7 @@ AudioStreamOut* A2dpAudioInterface::openOutputStream(
void A2dpAudioInterface::closeOutputStream(AudioStreamOut* out) {
if (mOutput == 0 || mOutput != out) {
LOGW("Attempt to close invalid output stream");
mHardwareInterface->closeOutputStream(out);
}
else {
delete mOutput;