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

Commit 891cf088 authored by Eric Laurent's avatar Eric Laurent Committed by Android Git Automerger
Browse files

am f30fd800: Merge "Revert "Do not acknowledge flush() on start() for static...

am f30fd800: Merge "Revert "Do not acknowledge flush() on start() for static tracks"" into mnc-dr-dev

* commit 'f30fd800':
  Revert "Do not acknowledge flush() on start() for static tracks"
parents 37f4f718 f30fd800
Loading
Loading
Loading
Loading
+3 −6
Original line number Diff line number Diff line
@@ -712,13 +712,10 @@ status_t AudioFlinger::PlaybackThread::Track::start(AudioSystem::sync_event_t ev
            // But in this case we know the mixer thread (whether normal mixer or fast mixer)
            // isn't looking at this track yet:  we still hold the normal mixer thread lock,
            // and for fast tracks the track is not yet in the fast mixer thread's active set.
            // TODO: remove race condition on stop() followed by start().
            if (mSharedBuffer == 0) {  // only streaming tracks use flush().
            ServerProxy::Buffer buffer;
            buffer.mFrameCount = 1;
            (void) mAudioTrackServerProxy->obtainBuffer(&buffer, true /*ackFlush*/);
        }
        }
    } else {
        status = BAD_VALUE;
    }