summaryrefslogtreecommitdiffstats
path: root/media
diff options
context:
space:
mode:
authorscherkus@chromium.org <scherkus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-25 22:56:42 +0000
committerscherkus@chromium.org <scherkus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-25 22:56:42 +0000
commit66c7207477210c663aa42af037484aff8fceab63 (patch)
tree3518f79b4e518e4524153e5dfb2bc553ebe0da2c /media
parentfe989f1881aad3beb18ed86b18f8cb19a11910ea (diff)
downloadchromium_src-66c7207477210c663aa42af037484aff8fceab63.zip
chromium_src-66c7207477210c663aa42af037484aff8fceab63.tar.gz
chromium_src-66c7207477210c663aa42af037484aff8fceab63.tar.bz2
Use argv[0] to print out executable usage info for media tools.
BUG=n/a TESt=n/a Review URL: http://codereview.chromium.org/434101 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33148 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media')
-rw-r--r--media/omx/omx_test.cc3
-rw-r--r--media/tools/media_bench/media_bench.cc2
-rw-r--r--media/tools/player_x11/player_x11.cc2
-rw-r--r--media/tools/wav_ola_test/wav_ola_test.cc2
4 files changed, 5 insertions, 4 deletions
diff --git a/media/omx/omx_test.cc b/media/omx/omx_test.cc
index 54ff63c..3b8b22e 100644
--- a/media/omx/omx_test.cc
+++ b/media/omx/omx_test.cc
@@ -130,7 +130,8 @@ int main(int argc, char** argv) {
const CommandLine* cmd_line = CommandLine::ForCurrentProcess();
if (argc < 2) {
- printf("Usage: omx_test --file=FILE --component=COMPONENT --codec=CODEC\n");
+ printf("Usage: %s --file=FILE --component=COMPONENT --codec=CODEC\n",
+ argv[0]);
printf(" COMPONENT: OpenMAX component name\n");
printf(" CODEC: h264/mpeg4/h263/vc1\n");
return 1;
diff --git a/media/tools/media_bench/media_bench.cc b/media/tools/media_bench/media_bench.cc
index fffbaf3..1a18ec8 100644
--- a/media/tools/media_bench/media_bench.cc
+++ b/media/tools/media_bench/media_bench.cc
@@ -84,7 +84,7 @@ int main(int argc, const char** argv) {
std::vector<std::wstring> filenames(cmd_line->GetLooseValues());
if (filenames.empty()) {
- std::cerr << "Usage: media_bench [OPTIONS] FILE [DUMPFILE]\n"
+ std::cerr << "Usage: " << argv[0] << " [OPTIONS] FILE [DUMPFILE]\n"
<< " --stream=[audio|video] "
<< "Benchmark either the audio or video stream\n"
<< " --video-threads=N "
diff --git a/media/tools/player_x11/player_x11.cc b/media/tools/player_x11/player_x11.cc
index 796e0ee..9e7261a 100644
--- a/media/tools/player_x11/player_x11.cc
+++ b/media/tools/player_x11/player_x11.cc
@@ -94,7 +94,7 @@ bool InitPipeline(MessageLoop* message_loop,
int main(int argc, char** argv) {
// Read arguments.
if (argc == 1) {
- std::cout << "Usage: player_x11 --file=FILE [--audio]"
+ std::cout << "Usage: " << argv[0] << " --file=FILE [--audio]"
" [--alsa-device=DEVICE]" << std::endl;
return 1;
}
diff --git a/media/tools/wav_ola_test/wav_ola_test.cc b/media/tools/wav_ola_test/wav_ola_test.cc
index 17bbabc..c07c2d7 100644
--- a/media/tools/wav_ola_test/wav_ola_test.cc
+++ b/media/tools/wav_ola_test/wav_ola_test.cc
@@ -72,7 +72,7 @@ int main(int argc, const char** argv) {
std::vector<std::wstring> filenames(cmd_line->GetLooseValues());
if (filenames.empty()) {
- std::cerr << "Usage: wav_ola_test RATE INFILE OUTFILE\n"
+ std::cerr << "Usage: " << argv[0] << " RATE INFILE OUTFILE\n"
<< std::endl;
return 1;
}