diff options
-rw-r--r-- | media/omx/omx_test.cc | 3 | ||||
-rw-r--r-- | media/tools/media_bench/media_bench.cc | 2 | ||||
-rw-r--r-- | media/tools/player_x11/player_x11.cc | 2 | ||||
-rw-r--r-- | media/tools/wav_ola_test/wav_ola_test.cc | 2 |
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; } |