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

Commit 91e5e043 authored by Marco Nelissen's avatar Marco Nelissen
Browse files

Fix seek issue

The removed code was original added to fix a deadlock, but is no longer needed.

Bug: http://b/19947213
Change-Id: I4dd9d6fdf5eb6c0fb654953569dc87b820579f84
parent 5c86635f
Loading
Loading
Loading
Loading
+0 −8
Original line number Diff line number Diff line
@@ -356,14 +356,6 @@ status_t NuPlayerDriver::seekTo(int msec) {
        case STATE_PREPARED:
        case STATE_STOPPED_AND_PREPARED:
        {
            int curpos = 0;
            if (mPositionUs > 0) {
                curpos = (mPositionUs + 500ll) / 1000;
            }
            if (curpos == msec) {
                // nothing to do, and doing something anyway could result in deadlock (b/15323063)
                break;
            }
            mStartupSeekTimeUs = seekTimeUs;
            // pretend that the seek completed. It will actually happen when starting playback.
            // TODO: actually perform the seek here, so the player is ready to go at the new