summaryrefslogtreecommitdiffstats
path: root/media
diff options
context:
space:
mode:
authorevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-13 02:07:25 +0000
committerevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-13 02:07:25 +0000
commitb7e0a2a3ccf5aceb891d5e1dfaf9db1bbaaa5f78 (patch)
treed723b8556ad386a0b8a6e999e3a842e0bfe6f9b0 /media
parent1976d41ac728fcceb30f2df3c243cb7417f538f1 (diff)
downloadchromium_src-b7e0a2a3ccf5aceb891d5e1dfaf9db1bbaaa5f78.zip
chromium_src-b7e0a2a3ccf5aceb891d5e1dfaf9db1bbaaa5f78.tar.gz
chromium_src-b7e0a2a3ccf5aceb891d5e1dfaf9db1bbaaa5f78.tar.bz2
Use ASCII strings for switch names.
Review URL: http://codereview.chromium.org/270062 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28779 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media')
-rw-r--r--media/bench/bench.cc26
1 files changed, 13 insertions, 13 deletions
diff --git a/media/bench/bench.cc b/media/bench/bench.cc
index 11afdf9..f1c3248 100644
--- a/media/bench/bench.cc
+++ b/media/bench/bench.cc
@@ -34,16 +34,16 @@
#include "media/filters/ffmpeg_video_decoder.h"
namespace switches {
-const wchar_t kStream[] = L"stream";
-const wchar_t kVideoThreads[] = L"video-threads";
-const wchar_t kVerbose[] = L"verbose";
-const wchar_t kFast2[] = L"fast2";
-const wchar_t kSkip[] = L"skip";
-const wchar_t kFlush[] = L"flush";
-const wchar_t kDjb2[] = L"djb2";
-const wchar_t kMd5[] = L"md5";
-const wchar_t kFrames[] = L"frames";
-const wchar_t kLoop[] = L"loop";
+const char kStream[] = "stream";
+const char kVideoThreads[] = "video-threads";
+const char kVerbose[] = "verbose";
+const char kFast2[] = "fast2";
+const char kSkip[] = "skip";
+const char kFlush[] = "flush";
+const char kDjb2[] = "djb2";
+const char kMd5[] = "md5";
+const char kFrames[] = "frames";
+const char kLoop[] = "loop";
} // namespace switches
@@ -125,11 +125,11 @@ int main(int argc, const char** argv) {
CodecType target_codec = CODEC_TYPE_UNKNOWN;
// Determine whether to benchmark audio or video decoding.
- std::wstring stream(cmd_line->GetSwitchValue(switches::kStream));
+ std::string stream(cmd_line->GetSwitchValueASCII(switches::kStream));
if (!stream.empty()) {
- if (stream.compare(L"audio") == 0) {
+ if (stream.compare("audio") == 0) {
target_codec = CODEC_TYPE_AUDIO;
- } else if (stream.compare(L"video") == 0) {
+ } else if (stream.compare("video") == 0) {
target_codec = CODEC_TYPE_VIDEO;
} else {
std::cerr << "Unknown --stream option " << stream << std::endl;