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

Commit 8a750be2 authored by Santhosh Behara's avatar Santhosh Behara Committed by Robert Shih
Browse files

httplive: Ignore seek request for livestreaming

Check added in HTTPLiveSource to throw error if seek
is called in live streaming usecase.

Change-Id: I3501172c0c03ecc662f2b9b18254e093d23c9f1f
parent 2928d74e
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -258,7 +258,11 @@ status_t NuPlayer::HTTPLiveSource::selectTrack(size_t trackIndex, bool select, i
}

status_t NuPlayer::HTTPLiveSource::seekTo(int64_t seekTimeUs, MediaPlayerSeekMode mode) {
    if (mLiveSession->isSeekable()) {
        return mLiveSession->seekTo(seekTimeUs, mode);
    } else {
        return INVALID_OPERATION;
    }
}

void NuPlayer::HTTPLiveSource::pollForRawData(