From c6e58419e00e6d04882a885101510e667d9c043a Mon Sep 17 00:00:00 2001 From: Wei Jia Date: Fri, 10 Jul 2015 18:04:55 -0700 Subject: NuPlayer: seek to current position when changing video surface and audio decoder exists. Bug: 22228075 Change-Id: I8b233319f48d2d0a49b44063cd895dc94949a489 --- media/libmediaplayerservice/nuplayer/NuPlayer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'media/libmediaplayerservice/nuplayer') 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 &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. -- cgit v1.1