Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 290d01f3 authored by Ronghua Wu's avatar Ronghua Wu
Browse files

libstagefright: remove out of date profiling result before doing a new profiling.

Bug: 21333717
Change-Id: Iaeff615fccf87b3aceed6fa566f82c06a981e030
parent 356f0847
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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.");