summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/MediaCodecList.cpp
diff options
context:
space:
mode:
authorRonghua Wu <ronghuawu@google.com>2015-06-12 15:20:37 -0700
committerRonghua Wu <ronghuawu@google.com>2015-06-12 15:24:11 -0700
commit290d01f37e6ac8d706dc9f06cc4460017ba0d7b1 (patch)
tree896271d1ee453c54a657d5b91a45a32fd8634a46 /media/libstagefright/MediaCodecList.cpp
parent356f08476db6191cdcbad20caf69d7bd642a09b2 (diff)
downloadframeworks_av-290d01f37e6ac8d706dc9f06cc4460017ba0d7b1.zip
frameworks_av-290d01f37e6ac8d706dc9f06cc4460017ba0d7b1.tar.gz
frameworks_av-290d01f37e6ac8d706dc9f06cc4460017ba0d7b1.tar.bz2
libstagefright: remove out of date profiling result before doing a new profiling.
Bug: 21333717 Change-Id: Iaeff615fccf87b3aceed6fa566f82c06a981e030
Diffstat (limited to 'media/libstagefright/MediaCodecList.cpp')
-rw-r--r--media/libstagefright/MediaCodecList.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/media/libstagefright/MediaCodecList.cpp b/media/libstagefright/MediaCodecList.cpp
index d48ede9..3f10be6 100644
--- a/media/libstagefright/MediaCodecList.cpp
+++ b/media/libstagefright/MediaCodecList.cpp
@@ -79,6 +79,8 @@ sp<IMediaCodecList> MediaCodecList::sCodecList;
// static
void *MediaCodecList::profilerThreadWrapper(void * /*arg*/) {
ALOGV("Enter profilerThreadWrapper.");
+ remove(kProfilingResults); // remove previous result so that it won't be loaded to
+ // the new MediaCodecList
MediaCodecList *codecList = new MediaCodecList();
if (codecList->initCheck() != OK) {
ALOGW("Failed to create a new MediaCodecList, skipping codec profiling.");