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

Commit 645e4397 authored by Eric Laurent's avatar Eric Laurent Committed by Gerrit Code Review
Browse files

Merge "AudioTrack: fix position callback after restore"

parents 9060d498 dfeed911
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -1691,7 +1691,6 @@ status_t AudioTrack::restoreTrack_l(const char *from)

    // take the frames that will be lost by track recreation into account in saved position
    size_t position = mProxy->getPosition() + mProxy->getFramesFilled();
    mNewPosition = position + mUpdatePeriod;
    size_t bufferPosition = mStaticProxy != NULL ? mStaticProxy->getBufferPosition() : 0;
    result = createTrack_l(mStreamType,
                           mSampleRate,