aboutsummaryrefslogtreecommitdiffstats
path: root/ffplay.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2008-05-21 23:41:17 +0000
committerMichael Niedermayer <michaelni@gmx.at>2008-05-21 23:41:17 +0000
commit20176cbc737a4896f10d199d5c02ae13cc74d34b (patch)
tree6579a823bf067fa2ac65ab6283c95d5b9fd7a7cf /ffplay.c
parent64555bd9b1596dca0aeac8ffe533ddca62356b80 (diff)
downloadffmpeg-20176cbc737a4896f10d199d5c02ae13cc74d34b.tar.gz
Get rid of more senseless wrapper functions and use OPT_EXIT instead.
Originally committed as revision 13233 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffplay.c')
-rw-r--r--ffplay.c16
1 files changed, 2 insertions, 14 deletions
diff --git a/ffplay.c b/ffplay.c
index 02d0dc4632..54b6e41c83 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -2432,21 +2432,9 @@ static int opt_thread_count(const char *opt, const char *arg)
return 0;
}
-static void opt_show_help(void)
-{
- show_help();
- exit(0);
-}
-
-static void opt_show_version(void)
-{
- show_version();
- exit(0);
-}
-
static const OptionDef options[] = {
- { "h", 0, {(void*)opt_show_help}, "show help" },
- { "version", 0, {(void*)opt_show_version}, "show version" },
+ { "h", OPT_EXIT, {(void*)show_help}, "show help" },
+ { "version", OPT_EXIT, {(void*)show_version}, "show version" },
{ "x", HAS_ARG | OPT_FUNC2, {(void*)opt_width}, "force displayed width", "width" },
{ "y", HAS_ARG | OPT_FUNC2, {(void*)opt_height}, "force displayed height", "height" },
{ "s", HAS_ARG | OPT_VIDEO, {(void*)opt_frame_size}, "set frame size (WxH or abbreviation)", "size" },