summaryrefslogtreecommitdiffstats
path: root/media/libmediaplayerservice
diff options
context:
space:
mode:
authorWei Jia <wjia@google.com>2014-09-25 15:27:04 -0700
committerWei Jia <wjia@google.com>2014-09-25 15:27:04 -0700
commit36f389888e4b2905f0b457f451187fd8d3ed5153 (patch)
treec310a4a1dca3c9cc8932fd54ab4fe98664576fd1 /media/libmediaplayerservice
parentc0d17e349901c3ccf6d15b7dcdf7fa30139c9750 (diff)
downloadframeworks_av-36f389888e4b2905f0b457f451187fd8d3ed5153.zip
frameworks_av-36f389888e4b2905f0b457f451187fd8d3ed5153.tar.gz
frameworks_av-36f389888e4b2905f0b457f451187fd8d3ed5153.tar.bz2
NuPlayer: use format obtained from source to tell if video exists.
Bug: 17374216 Change-Id: I2d5f90d72b70684475d67ff8f41b803c2880840b
Diffstat (limited to 'media/libmediaplayerservice')
-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 ef4abd4..ca596fd 100644
--- a/media/libmediaplayerservice/nuplayer/NuPlayer.cpp
+++ b/media/libmediaplayerservice/nuplayer/NuPlayer.cpp
@@ -559,7 +559,7 @@ void NuPlayer::onMessageReceived(const sp<AMessage> &msg) {
static_cast<NativeWindowWrapper *>(obj.get())));
if (obj != NULL) {
- if (mStarted && mVideoDecoder != NULL) {
+ if (mStarted && mSource->getFormat(false /* audio */) != NULL) {
// Issue a seek to refresh the video screen only if started otherwise
// the extractor may not yet be started and will assert.
// If the video decoder is not set (perhaps audio only in this case)