summaryrefslogtreecommitdiffstats
path: root/media/libmediaplayerservice/nuplayer/NuPlayer.cpp
diff options
context:
space:
mode:
authorWei Jia <wjia@google.com>2015-07-10 18:04:55 -0700
committerWei Jia <wjia@google.com>2015-07-10 18:04:55 -0700
commitc6e58419e00e6d04882a885101510e667d9c043a (patch)
tree02fab38217bf8bab27909b697a3e2fc883ba1efe /media/libmediaplayerservice/nuplayer/NuPlayer.cpp
parent11addc1d922efa0bf12e261481bba11024c7c7ab (diff)
downloadframeworks_av-c6e58419e00e6d04882a885101510e667d9c043a.zip
frameworks_av-c6e58419e00e6d04882a885101510e667d9c043a.tar.gz
frameworks_av-c6e58419e00e6d04882a885101510e667d9c043a.tar.bz2
NuPlayer: seek to current position when changing video surface and audio decoder exists.
Bug: 22228075 Change-Id: I8b233319f48d2d0a49b44063cd895dc94949a489
Diffstat (limited to 'media/libmediaplayerservice/nuplayer/NuPlayer.cpp')
-rw-r--r--media/libmediaplayerservice/nuplayer/NuPlayer.cpp2
1 files changed, 1 insertions, 1 deletions
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 @@ 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.