summaryrefslogtreecommitdiffstats
path: root/media/libmediaplayerservice
diff options
context:
space:
mode:
authorWei Jia <wjia@google.com>2014-07-24 23:33:45 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-07-24 23:33:45 +0000
commit1916401537e727b1227bc6679657675682b6c855 (patch)
treedb36f6888de79084e78b1070425ccb1e054c058e /media/libmediaplayerservice
parentf18e800af725a4714f18f6515ea3947a7442e971 (diff)
parent81e50d0c782cc18eab4ef40ecd6c7f36df50fea5 (diff)
downloadframeworks_av-1916401537e727b1227bc6679657675682b6c855.zip
frameworks_av-1916401537e727b1227bc6679657675682b6c855.tar.gz
frameworks_av-1916401537e727b1227bc6679657675682b6c855.tar.bz2
am 81e50d0c: Reset the value for Vector of pointers.
* commit '81e50d0c782cc18eab4ef40ecd6c7f36df50fea5': Reset the value for Vector of pointers.
Diffstat (limited to 'media/libmediaplayerservice')
-rw-r--r--media/libmediaplayerservice/nuplayer/NuPlayerDecoder.cpp6
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() {