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

Commit add3dfc4 authored by Andreas Huber's avatar Andreas Huber Committed by Android Git Automerger
Browse files

am ac1a450a: Merge "Don\'t attempt to seek audio and video separately." into jb-mr1-dev

* commit 'ac1a450a':
  Don't attempt to seek audio and video separately.
parents 07fd6c21 93a209fe
Loading
Loading
Loading
Loading
+17 −9
Original line number Diff line number Diff line
@@ -1707,7 +1707,8 @@ void AwesomePlayer::onVideoEvent() {
        }
    }

    if ((mFlags & TEXTPLAYER_INITIALIZED) && !(mFlags & (TEXT_RUNNING | SEEK_PREVIEW))) {
    if ((mFlags & TEXTPLAYER_INITIALIZED)
            && !(mFlags & (TEXT_RUNNING | SEEK_PREVIEW))) {
        mTextDriver->start();
        modifyFlags(TEXT_RUNNING, SET);
    }
@@ -1753,6 +1754,7 @@ void AwesomePlayer::onVideoEvent() {
                && mAudioPlayer != NULL
                && mAudioPlayer->getMediaTimeMapping(
                    &realTimeUs, &mediaTimeUs)) {
            if (mWVMExtractor == NULL) {
                ALOGI("we're much too late (%.2f secs), video skipping ahead",
                     latenessUs / 1E6);

@@ -1764,6 +1766,12 @@ void AwesomePlayer::onVideoEvent() {

                postVideoEvent_l();
                return;
            } else {
                // The widevine extractor doesn't deal well with seeking
                // audio and video independently. We'll just have to wait
                // until the decoder catches up, which won't be long at all.
                ALOGI("we're very late (%.2f secs)", latenessUs / 1E6);
            }
        }

        if (latenessUs > 40000) {