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

Commit 8c0039ca authored by Wonsik Kim's avatar Wonsik Kim Committed by Android (Google) Code Review
Browse files

Merge "Fix dumpsys media.player"

parents 0213086e d579f3ef
Loading
Loading
Loading
Loading
+7 −7
Original line number Diff line number Diff line
@@ -422,9 +422,9 @@ static void dumpCodecDetails(int fd, const sp<IMediaCodecList> &codecList, bool
                printList("colors", list);
            }

            snprintf(buffer, SIZE - 1, "    details: %s\n",
                     caps->getDetails()->debugString(6).c_str());
            result.append(buffer);
            result.append("    details: ");
            result.append(caps->getDetails()->debugString(6).c_str());
            result.append("\n");
        }
    }
    result.append("\n");
@@ -689,6 +689,10 @@ status_t MediaPlayerService::dump(int fd, const Vector<String16>& args)

        gLooperRoster.dump(fd, args);

        sp<IMediaCodecList> codecList = getCodecList();
        dumpCodecDetails(fd, codecList, true /* decoders */);
        dumpCodecDetails(fd, codecList, false /* !decoders */);

        bool dumpMem = false;
        bool unreachableMemory = false;
        for (size_t i = 0; i < args.size(); i++) {
@@ -712,10 +716,6 @@ status_t MediaPlayerService::dump(int fd, const Vector<String16>& args)
    }
    write(fd, result.string(), result.size());

    sp<IMediaCodecList> codecList = getCodecList();
    dumpCodecDetails(fd, codecList, true /* decoders */);
    dumpCodecDetails(fd, codecList, false /* !decoders */);

    return NO_ERROR;
}