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

Commit 614d22c7 authored by Andreas Huber's avatar Andreas Huber
Browse files

After seeking display the first new video frame right away without concern for...

After seeking display the first new video frame right away without concern for A/V sync. This looks much more responsive to the user.

related-to-bug: 3152363
Change-Id: Ia097bf61ca05e01365357cb23ff83e2ad417f3fd
parent 6b21cdeb
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -1298,6 +1298,7 @@ void AwesomePlayer::onVideoEvent() {
        mVideoTimeUs = timeUs;
    }

    bool wasSeeking = mSeeking;
    finishSeekIfNecessary(timeUs);

    TimeSource *ts = (mFlags & AUDIO_AT_EOS) ? &mSystemTimeSource : mTimeSource;
@@ -1318,6 +1319,11 @@ void AwesomePlayer::onVideoEvent() {

    int64_t latenessUs = nowUs - timeUs;

    if (wasSeeking) {
        // Let's display the first frame after seeking right away.
        latenessUs = 0;
    }

    if (mRTPSession != NULL) {
        // We'll completely ignore timestamps for gtalk videochat
        // and we'll play incoming video as fast as we get it.