diff options
author | Clément Bœsch <ubitux@gmail.com> | 2010-11-12 21:04:16 +0100 |
---|---|---|
committer | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2010-11-13 23:06:33 +0200 |
commit | 9a9a7feafe213147de93bb34d1e4f70a99777b15 (patch) | |
tree | ae43d3fbb792f8c049dcb393576aa9711541e605 /cfg-mplayer.h | |
parent | 91ea30c58587af0929b7dea42ff238d70e78a9bc (diff) | |
download | mpv-9a9a7feafe213147de93bb34d1e4f70a99777b15.tar.bz2 mpv-9a9a7feafe213147de93bb34d1e4f70a99777b15.tar.xz |
options: move various mplayer.c options to option struct
Following options were moved: [no]quiet, [no]autosync, softsleep,
[no]rtc, rtc-device.
Diffstat (limited to 'cfg-mplayer.h')
-rw-r--r-- | cfg-mplayer.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/cfg-mplayer.h b/cfg-mplayer.h index 21733912d5..d00aa379f4 100644 --- a/cfg-mplayer.h +++ b/cfg-mplayer.h @@ -310,14 +310,13 @@ const m_option_t mplayer_opts[]={ OPT_MAKE_FLAGS("correct-pts", user_correct_pts, 0), OPT_INTRANGE("pts-association-mode", user_pts_assoc_mode, 0, 0, 2), OPT_MAKE_FLAGS("initial-audio-sync", initial_audio_sync, 0), - {"noautosync", &autosync, CONF_TYPE_FLAG, 0, 0, -1, NULL}, - {"autosync", &autosync, CONF_TYPE_INT, CONF_RANGE, 0, 10000, NULL}, + OPT_FLAG_CONSTANTS("noautosync", autosync, 0, 0, -1), + OPT_INTRANGE("autosync", autosync, 0, 0, 10000), - {"softsleep", &softsleep, CONF_TYPE_FLAG, 0, 0, 1, NULL}, + OPT_FLAG_ON("softsleep", softsleep, 0), #ifdef HAVE_RTC - {"nortc", &nortc, CONF_TYPE_FLAG, 0, 0, 1, NULL}, - {"rtc", &nortc, CONF_TYPE_FLAG, 0, 1, 0, NULL}, - {"rtc-device", &rtc_device, CONF_TYPE_STRING, 0, 0, 0, NULL}, + OPT_MAKE_FLAGS("rtc", rtc, 0), + OPT_STRING("rtc-device", rtc_device, 0), #endif {"term-osd", &term_osd, CONF_TYPE_FLAG, 0, 0, 1, NULL}, |