diff options
author | Wei Jia <wjia@google.com> | 2014-07-24 10:28:47 -0700 |
---|---|---|
committer | Wei Jia <wjia@google.com> | 2014-07-24 10:45:39 -0700 |
commit | 81e50d0c782cc18eab4ef40ecd6c7f36df50fea5 (patch) | |
tree | 64067ccf86de551b41257baee37afbbf103bd79f /media/libmediaplayerservice | |
parent | 83b8808faad1e91690c64d7007348be8d9ebde73 (diff) | |
download | frameworks_av-81e50d0c782cc18eab4ef40ecd6c7f36df50fea5.zip frameworks_av-81e50d0c782cc18eab4ef40ecd6c7f36df50fea5.tar.gz frameworks_av-81e50d0c782cc18eab4ef40ecd6c7f36df50fea5.tar.bz2 |
Reset the value for Vector of pointers.
Bug: 16467066
Change-Id: I3674e07779a59f4d4fa639d066ed1988df89b3f5
Diffstat (limited to 'media/libmediaplayerservice')
-rw-r--r-- | media/libmediaplayerservice/nuplayer/NuPlayerDecoder.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/media/libmediaplayerservice/nuplayer/NuPlayerDecoder.cpp b/media/libmediaplayerservice/nuplayer/NuPlayerDecoder.cpp index 1b9bafb..8fce2f4 100644 --- a/media/libmediaplayerservice/nuplayer/NuPlayerDecoder.cpp +++ b/media/libmediaplayerservice/nuplayer/NuPlayerDecoder.cpp @@ -155,8 +155,14 @@ void NuPlayer::Decoder::releaseAndResetMediaBuffers() { } } mMediaBuffers.resize(mInputBuffers.size()); + for (size_t i = 0; i < mMediaBuffers.size(); i++) { + mMediaBuffers.editItemAt(i) = NULL; + } mInputBufferIsDequeued.clear(); mInputBufferIsDequeued.resize(mInputBuffers.size()); + for (size_t i = 0; i < mInputBufferIsDequeued.size(); i++) { + mInputBufferIsDequeued.editItemAt(i) = false; + } } void NuPlayer::Decoder::requestCodecNotification() { |