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

Commit b7f1523b authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "NuPlayerRenderer: Update position of AV stream even after audio EOS"

parents 92fa8bf5 ac04156e
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -242,7 +242,7 @@ status_t NuPlayer::Renderer::getCurrentPositionFromAnchor(


    // limit position to the last queued media time (for video only stream
    // limit position to the last queued media time (for video only stream
    // position will be discrete as we don't know how long each frame lasts)
    // position will be discrete as we don't know how long each frame lasts)
    if (mAnchorMaxMediaUs >= 0 && !allowPastQueuedVideo) {
    if (!mHasAudio && mAnchorMaxMediaUs >= 0 && !allowPastQueuedVideo) {
        if (positionUs > mAnchorMaxMediaUs) {
        if (positionUs > mAnchorMaxMediaUs) {
            positionUs = mAnchorMaxMediaUs;
            positionUs = mAnchorMaxMediaUs;
        }
        }