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

Commit c6e58419 authored by Wei Jia's avatar Wei Jia
Browse files

NuPlayer: seek to current position when changing video surface and audio decoder exists.

Bug: 22228075
Change-Id: I8b233319f48d2d0a49b44063cd895dc94949a489
parent 11addc1d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -639,7 +639,7 @@ void NuPlayer::onMessageReceived(const sp<AMessage> &msg) {

            mDeferredActions.push_back(new SetSurfaceAction(surface));

            if (obj != NULL) {
            if (obj != NULL || mAudioDecoder != NULL) {
                if (mStarted) {
                    // Issue a seek to refresh the video screen only if started otherwise
                    // the extractor may not yet be started and will assert.