summaryrefslogtreecommitdiffstats
path: root/media
diff options
context:
space:
mode:
authorRonghua Wu <ronghuawu@google.com>2015-06-12 23:14:24 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-06-12 23:14:24 +0000
commit7bf8e1c28ba7ba6eb0c677d9ca749e4238fa43f4 (patch)
tree98087510a5c9b478d5090dace47c2cf54db4c1b8 /media
parent652bc0197341337bb07fc4f87f168167fb3f47dc (diff)
parent290d01f37e6ac8d706dc9f06cc4460017ba0d7b1 (diff)
downloadframeworks_av-7bf8e1c28ba7ba6eb0c677d9ca749e4238fa43f4.zip
frameworks_av-7bf8e1c28ba7ba6eb0c677d9ca749e4238fa43f4.tar.gz
frameworks_av-7bf8e1c28ba7ba6eb0c677d9ca749e4238fa43f4.tar.bz2
Merge "libstagefright: remove out of date profiling result before doing a new profiling." into mnc-dev
Diffstat (limited to 'media')
-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.");