diff options
author | Wei Jia <wjia@google.com> | 2014-09-26 00:19:55 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2014-09-26 00:19:55 +0000 |
commit | 0ed72488feba74904d25ebc91bda60c6b1d0af55 (patch) | |
tree | 30789a95ee7a679fcc77e2901c4ce2ef8ef49025 /media | |
parent | ea55da9434f674efaacaa443c97a411bdef4ff1a (diff) | |
parent | 36f389888e4b2905f0b457f451187fd8d3ed5153 (diff) | |
download | frameworks_av-0ed72488feba74904d25ebc91bda60c6b1d0af55.zip frameworks_av-0ed72488feba74904d25ebc91bda60c6b1d0af55.tar.gz frameworks_av-0ed72488feba74904d25ebc91bda60c6b1d0af55.tar.bz2 |
Merge "NuPlayer: use format obtained from source to tell if video exists." into lmp-dev
Diffstat (limited to 'media')
-rw-r--r-- | media/libmediaplayerservice/nuplayer/NuPlayer.cpp | 2 |
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) |