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

Commit 469fef91 authored by Haynes Mathew George's avatar Haynes Mathew George Committed by Steve Kondik
Browse files

AwesomePlayer: post seek complete if seek cannot be handled

If the extractor says SEEK isn't supported, notify SEEK_COMPLETE
immediately.

Change-Id: I8b899c901b7eae3d6d437829a29672fc676c2560
CRs-Fixed: 630590
parent 69deea32
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1670,6 +1670,10 @@ status_t AwesomePlayer::seekTo(int64_t timeUs) {
        (mExtractorFlags & MediaExtractor::CAN_SEEK)) {
        Mutex::Autolock autoLock(mLock);
        return seekTo_l(timeUs);
    } else {
        ALOGV("Extractor cannot seek, post seek complete");
        Mutex::Autolock autoLock(mLock);
        notifyListener_l(MEDIA_SEEK_COMPLETE);
    }

    return OK;