summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authorUoti Urpala <uau@glyph.nonexistent.invalid>2009-11-16 00:50:01 +0200
committerUoti Urpala <uau@glyph.nonexistent.invalid>2009-11-16 00:50:01 +0200
commit19b4d70e01ca2fd963b4ca599e0377e109a6881f (patch)
tree8553e2bedb5f5dd006257cc1f44a9baf2e8c71e2 /libvo
parent14bb3416c735e99cbf0507548d3f3fcbba0fba7f (diff)
downloadmpv-19b4d70e01ca2fd963b4ca599e0377e109a6881f.tar.bz2
mpv-19b4d70e01ca2fd963b4ca599e0377e109a6881f.tar.xz
vo_vdpau: Remove custom help message
Remove the help text explaining -vo vdpau suboptions that was printed in case of parsing errors. It did perhaps have some value, but there are also reasons to remove it: it was printed in an ugly manner in the middle of output, most other MPlayer options do not have such internal help texts either, and it was detailed enough that it required maintaining documentation about the options in two separate places (the man page and the help message).
Diffstat (limited to 'libvo')
-rw-r--r--libvo/vo_vdpau.c31
1 files changed, 7 insertions, 24 deletions
diff --git a/libvo/vo_vdpau.c b/libvo/vo_vdpau.c
index b48f44052a..2bd0eec3c4 100644
--- a/libvo/vo_vdpau.c
+++ b/libvo/vo_vdpau.c
@@ -1570,27 +1570,6 @@ static void uninit(struct vo *vo)
dlclose(vc->vdpau_lib_handle);
}
-static const char help_msg[] =
- "\n-vo vdpau command line help:\n"
- "Example: mplayer -vo vdpau:deint=2\n"
- "\nOptions:\n"
- " deint (all modes > 0 respect -field-dominance)\n"
- " 0: no deinterlacing\n"
- " 1: only show first field\n"
- " 2: bob deinterlacing\n"
- " 3: temporal deinterlacing (resource-hungry)\n"
- " 4: temporal-spatial deinterlacing (very resource-hungry)\n"
- " chroma-deint\n"
- " Operate on luma and chroma when using temporal deinterlacing (default)\n"
- " Use nochroma-deint to speed up temporal deinterlacing\n"
- " pullup\n"
- " Try to apply inverse-telecine (needs temporal deinterlacing)\n"
- " denoise\n"
- " Apply denoising, argument is strength from 0.0 to 1.0\n"
- " sharpen\n"
- " Apply sharpening or softening, argument is strength from -1.0 to 1.0\n"
- ;
-
static int preinit(struct vo *vo, const char *arg)
{
int i;
@@ -1616,9 +1595,13 @@ static int preinit(struct vo *vo, const char *arg)
{"fps", OPT_ARG_FLOAT, &vc->user_fps, NULL},
{NULL}
};
- if (subopt_parse(arg, subopts) != 0 || vc->hqscaling < 0
- || vc->hqscaling > 9) {
- mp_msg(MSGT_VO, MSGL_FATAL, help_msg);
+ if (subopt_parse(arg, subopts) != 0) {
+ mp_msg(MSGT_VO, MSGL_FATAL, "[vdpau] Could not parse suboptions.\n");
+ return -1;
+ }
+ if (vc->hqscaling < 0 || vc->hqscaling > 9) {
+ mp_msg(MSGT_VO, MSGL_FATAL, "[vdpau] Invalid value for suboption "
+ "hqscaling\n");
return -1;
}
if (vc->deint)