diff options
author | Chong Zhang <chz@google.com> | 2015-02-06 00:06:52 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2015-02-06 00:06:52 +0000 |
commit | 78a0d1acd4cb7103bba349f8a23fd1814bed483b (patch) | |
tree | 135356292f21561ad4fe8ce5a2ec8d4bed2e2e6c /media/libmediaplayerservice | |
parent | e576086224f6e630159eaeec59ab5146c8533dc7 (diff) | |
parent | 04d2804a212c2625425cb23b2b778ab4f3683769 (diff) | |
download | frameworks_av-78a0d1acd4cb7103bba349f8a23fd1814bed483b.zip frameworks_av-78a0d1acd4cb7103bba349f8a23fd1814bed483b.tar.gz frameworks_av-78a0d1acd4cb7103bba349f8a23fd1814bed483b.tar.bz2 |
am 04d2804a: am 13cfe85a: Merge "reuse CCDecoder on video discontinuity" into lmp-mr1-dev
* commit '04d2804a212c2625425cb23b2b778ab4f3683769':
reuse CCDecoder on video discontinuity
Diffstat (limited to 'media/libmediaplayerservice')
-rw-r--r-- | media/libmediaplayerservice/nuplayer/NuPlayer.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/media/libmediaplayerservice/nuplayer/NuPlayer.cpp b/media/libmediaplayerservice/nuplayer/NuPlayer.cpp index 1f55706..fb8dbce 100644 --- a/media/libmediaplayerservice/nuplayer/NuPlayer.cpp +++ b/media/libmediaplayerservice/nuplayer/NuPlayer.cpp @@ -1201,7 +1201,9 @@ status_t NuPlayer::instantiateDecoder(bool audio, sp<DecoderBase> *decoder) { CHECK(format->findString("mime", &mime)); sp<AMessage> ccNotify = new AMessage(kWhatClosedCaptionNotify, id()); - mCCDecoder = new CCDecoder(ccNotify); + if (mCCDecoder == NULL) { + mCCDecoder = new CCDecoder(ccNotify); + } if (mSourceFlags & Source::FLAG_SECURE) { format->setInt32("secure", true); |