Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8851d1e0 authored by Eric Laurent's avatar Eric Laurent
Browse files

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.
parent 8652a49e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;