commit | c6e58419e00e6d04882a885101510e667d9c043a | [log] [tgz] |
---|---|---|
author | Wei Jia <wjia@google.com> | Fri Jul 10 18:04:55 2015 -0700 |
committer | Wei Jia <wjia@google.com> | Fri Jul 10 18:04:55 2015 -0700 |
tree | 02fab38217bf8bab27909b697a3e2fc883ba1efe | |
parent | 11addc1d922efa0bf12e261481bba11024c7c7ab [diff] [blame] |
NuPlayer: seek to current position when changing video surface and audio decoder exists. Bug: 22228075 Change-Id: I8b233319f48d2d0a49b44063cd895dc94949a489
diff --git a/media/libmediaplayerservice/nuplayer/NuPlayer.cpp b/media/libmediaplayerservice/nuplayer/NuPlayer.cpp index a9d8904..4a1a34d 100644 --- a/media/libmediaplayerservice/nuplayer/NuPlayer.cpp +++ b/media/libmediaplayerservice/nuplayer/NuPlayer.cpp
@@ -639,7 +639,7 @@ 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.