summaryrefslogtreecommitdiffstats
path: root/cmds
diff options
context:
space:
mode:
authorJames Dong <jdong@google.com>2012-04-27 16:54:59 -0700
committerJames Dong <jdong@google.com>2012-04-27 17:00:38 -0700
commit209ec37b27a4fb6c92005c91ecf993ec19a3d430 (patch)
tree6009bcb3fbb95ec7de0531e9adf7266f77447468 /cmds
parent300a2ee9327c05fbf9d3a5fd595b558097c7c5e8 (diff)
downloadframeworks_av-209ec37b27a4fb6c92005c91ecf993ec19a3d430.zip
frameworks_av-209ec37b27a4fb6c92005c91ecf993ec19a3d430.tar.gz
frameworks_av-209ec37b27a4fb6c92005c91ecf993ec19a3d430.tar.bz2
Fixed incorrect codec type in the output for profiles/levels in cmd stagefright
o related-to-bug: 6401068 Change-Id: Icdc2cfa37ed053f53d1466d8b068f1d9973ed82f
Diffstat (limited to 'cmds')
-rw-r--r--cmds/stagefright/stagefright.cpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/cmds/stagefright/stagefright.cpp b/cmds/stagefright/stagefright.cpp
index 7087a81..0362f39 100644
--- a/cmds/stagefright/stagefright.cpp
+++ b/cmds/stagefright/stagefright.cpp
@@ -621,11 +621,8 @@ static void dumpCodecProfiles(const sp<IOMX>& omx, bool queryDecoders) {
MEDIA_MIMETYPE_VIDEO_VPX
};
- if (queryDecoders) {
- printf("decoder profiles:\n");
- } else {
- printf("encoder profiles:\n");
- }
+ const char *codecType = queryDecoders? "decoder" : "encoder";
+ printf("%s profiles:\n", codecType);
for (size_t k = 0; k < sizeof(kMimeTypes) / sizeof(kMimeTypes[0]); ++k) {
printf("type '%s':\n", kMimeTypes[k]);
@@ -637,8 +634,8 @@ static void dumpCodecProfiles(const sp<IOMX>& omx, bool queryDecoders) {
&results), (status_t)OK);
for (size_t i = 0; i < results.size(); ++i) {
- printf(" decoder '%s' supports ",
- results[i].mComponentName.string());
+ printf(" %s '%s' supports ",
+ codecType, results[i].mComponentName.string());
if (results[i].mProfileLevels.size() == 0) {
printf("NOTHING.\n");