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

Commit e2b40471 authored by Santhosh Behara's avatar Santhosh Behara Committed by Linux Build Service Account
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: I1d478ea506734bd9b6bbfba4f04649be398f3c7a
parent 9d63d49e
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -202,7 +202,11 @@ status_t NuPlayer::HTTPLiveSource::selectTrack(size_t trackIndex, bool select, i
}

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

void NuPlayer::HTTPLiveSource::pollForRawData(