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

Commit ac759d49 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "avoid resetting mExpectRetrograde when deltaHalPosition == 0" into 24D1-dev

parents 923b3a0a e93e6cf2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -64,7 +64,7 @@ status_t AudioStreamOut::getRenderPosition(uint64_t *frames)
    int32_t deltaHalPosition; // initialization not needed, overwitten by __builtin_sub_overflow()
    (void) __builtin_sub_overflow(halPosition, truncatedPosition, &deltaHalPosition);

    if (deltaHalPosition > 0) {
    if (deltaHalPosition >= 0) {
        mRenderPosition += deltaHalPosition;
    } else if (mExpectRetrograde) {
        mExpectRetrograde = false;