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

Commit 68656358 authored by Andrew Lewis's avatar Andrew Lewis Committed by Automerger Merge Worker
Browse files

Merge "Clamp audio seek to non-zero timestamp" into rvc-dev am: 7a0d96e9 am: 68460b75

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/av/+/11733625

Change-Id: Id8ef3617b3948b00cf6c56870f07b72ebba3dcb8
parents a3720db5 68460b75
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1159,7 +1159,7 @@ status_t NuPlayer::GenericSource::doSeek(int64_t seekTimeUs, MediaPlayerSeekMode
        readBuffer(MEDIA_TRACK_TYPE_VIDEO, seekTimeUs, mode, &actualTimeUs);

        if (mode != MediaPlayerSeekMode::SEEK_CLOSEST) {
            seekTimeUs = actualTimeUs;
            seekTimeUs = std::max<int64_t>(0, actualTimeUs);
        }
        mVideoLastDequeueTimeUs = actualTimeUs;
    }