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

Commit 6ae15d0d authored by Eric Ho's avatar Eric Ho Committed by Steve Kondik
Browse files

libstagefright: print seek statistics even when paused

 - if seek is issued during paused state, SEEK_PREVIEW flag is set
   and statistics needs to be printed even if that happens.

Change-Id: Ida5040d2961bff4dfb8a53b50be01609aaac9976
CRs-Fixed: 512801
parent e70044b7
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -1883,6 +1883,12 @@ status_t AwesomePlayer::initVideoDecoder(uint32_t flags) {

void AwesomePlayer::finishSeekIfNecessary(int64_t videoTimeUs) {
    ATRACE_CALL();
    if (mSeeking != NO_SEEK)
    {
        Mutex::Autolock autoLock(mStatsLock);
        mStats.mLastSeekToTimeMs = mSeekTimeUs/1000;
        printStats();
    }

    if (mSeeking == SEEK_VIDEO_ONLY) {
        mSeeking = NO_SEEK;