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

Commit d3c28f66 authored by Haynes Mathew George's avatar Haynes Mathew George Committed by Wei Jia
Browse files

NuPlayerDriver: Maintain the timeStamp after seek



 While offload playback is going on, if user pause
 and seeks to new position before offload tear-down,
 on resume playback starts from old time-stamp.

 Once tear-down happens NuPlayer loses updated time-stamp
 so while resuming it resumes playback with stale time-stamp.
 Make sure the updated time-stamp is maintained in
 NuPlayerDriver which is used while starting the playback
 after resume.

authored-by: default avatarSharad Sangle <assangle@codeaurora.org>
Change-Id: Ie125cf0fab1b0a237e67e43b0e5b4a704483ef99
parent 3d66eb41
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -388,6 +388,9 @@ status_t NuPlayerDriver::seekTo(int msec) {
        {
            mAtEOS = false;
            mSeekInProgress = true;
            if (mState == STATE_PAUSED) {
               mStartupSeekTimeUs = seekTimeUs;
            }
            // seeks can take a while, so we essentially paused
            notifyListener_l(MEDIA_PAUSED);
            mPlayer->seekToAsync(seekTimeUs, true /* needNotify */);