commit | 341ab6eebb6a992ec7bdf095420cf82bcab1c6b3 | [log] [tgz] |
---|---|---|
author | Chong Zhang <chz@google.com> | Wed Feb 04 13:37:18 2015 -0800 |
committer | Chong Zhang <chz@google.com> | Wed Feb 04 13:38:59 2015 -0800 |
tree | bc31f63e34f4a74a7bf679786e5a9af005348ed3 | |
parent | 77f877f82733263bca825b92a3f4537caafabf74 [diff] [blame] |
reuse CCDecoder on video discontinuity bug: 19266084 Change-Id: I06ef57b09b048a85f77be4dee27599c4f60aacc9
diff --git a/media/libmediaplayerservice/nuplayer/NuPlayer.cpp b/media/libmediaplayerservice/nuplayer/NuPlayer.cpp index e02a2d5..3b472a2 100644 --- a/media/libmediaplayerservice/nuplayer/NuPlayer.cpp +++ b/media/libmediaplayerservice/nuplayer/NuPlayer.cpp
@@ -1185,7 +1185,9 @@ 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);