summaryrefslogtreecommitdiffstats
path: root/cfg-mplayer.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2012-09-17 08:38:19 +0200
committerwm4 <wm4@nowhere>2012-10-12 10:10:30 +0200
commit6f1486b397d632feaa71f88b980491aea7b69256 (patch)
treecb85ed961be7bd6037a0ae402921516f93ad1808 /cfg-mplayer.h
parenta59eee489318d406497eb5fb8a95d7e23d5eee1f (diff)
downloadmpv-6f1486b397d632feaa71f88b980491aea7b69256.tar.bz2
mpv-6f1486b397d632feaa71f88b980491aea7b69256.tar.xz
commands: replace --hardframedrop, change framedropping property
Replace --hardframedrop with --framedrop=hard. Rename the framedrop property from "framedropping" to "framedrop" for the sake of making command line options have the same name as their corresponding property. Change the property to accept choice values instead of numeric values. Remove unused/forgotten auto_quality variable.
Diffstat (limited to 'cfg-mplayer.h')
-rw-r--r--cfg-mplayer.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/cfg-mplayer.h b/cfg-mplayer.h
index 304c60f194..d9d78082ac 100644
--- a/cfg-mplayer.h
+++ b/cfg-mplayer.h
@@ -678,8 +678,10 @@ const m_option_t mplayer_opts[]={
{"sstep", &step_sec, CONF_TYPE_INT, CONF_MIN, 0, 0, NULL},
- {"framedrop", &frame_dropping, CONF_TYPE_FLAG, 0, 0, 1, NULL},
- {"hardframedrop", &frame_dropping, CONF_TYPE_FLAG, 0, 0, 2, NULL},
+ OPT_CHOICE("framedrop", frame_dropping, 0,
+ ({"no", 0},
+ {"yes", 1}, {"", 1},
+ {"hard", 2})),
OPT_FLAG_ON("untimed", untimed, 0),