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

Commit 5f0d9235 authored by Riaz Rahaman's avatar Riaz Rahaman Committed by Steve Kondik
Browse files

libstagefright: set threshold for earliness

Change the threshold value for earliness to 40ms
This fixes the av sync loss issues.

Change-Id: Ib912048987e8e6187dc37d5dbaff5d1ead224c61
CRs-Fixed: 584417
parent da6bf5a9
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -2350,8 +2350,8 @@ void AwesomePlayer::onVideoEvent() {
                Mutex::Autolock autoLock(mStatsLock);
                mStats.mConsecutiveFramesDropped = 0;
            }
            postVideoEvent_l((kVideoEarlyMarginUs - latenessUs) > 100000LL ?
                                100000LL : (kVideoEarlyMarginUs - latenessUs));
            postVideoEvent_l((kVideoEarlyMarginUs - latenessUs) > 40000LL ?
                                40000LL : (kVideoEarlyMarginUs - latenessUs));
            return;
        }
    }