summaryrefslogtreecommitdiffstats
path: root/m_option.h
diff options
context:
space:
mode:
authorUoti Urpala <uau@mplayer2.org>2011-07-28 11:39:43 +0300
committerUoti Urpala <uau@mplayer2.org>2011-07-29 05:50:38 +0300
commitf25accbc510b641ac75a1f274376616417763ae5 (patch)
tree8ef7aa6cc1470fb61f2cd46a3b82aec6cc06ead3 /m_option.h
parente873d703e956d3e2e68b9e18562983b029b5c7a8 (diff)
downloadmpv-f25accbc510b641ac75a1f274376616417763ae5.tar.bz2
mpv-f25accbc510b641ac75a1f274376616417763ae5.tar.xz
core: improve --loop handling
Make per-file loop option start from --ss position, not always 0. Do looping in more cases; before looping was only done when encountering real end of file, now it also happens for example at --endpos or --frames limits. Also move the --ss option to the option struct.
Diffstat (limited to 'm_option.h')
-rw-r--r--m_option.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/m_option.h b/m_option.h
index 123e51005c..48f94781a3 100644
--- a/m_option.h
+++ b/m_option.h
@@ -499,5 +499,6 @@ static inline void m_option_free(const m_option_t *opt, void *dst)
#define OPT_AUDIOFORMAT(optname, varname, flags) {optname, NULL, &m_option_type_afmt, flags, 0, 0, NULL, 1, offsetof(struct MPOpts, varname)}
#define OPT_HELPER_REMOVEPAREN(...) __VA_ARGS__
#define OPT_CHOICE(optname, varname, flags, choices) {optname, NULL, &m_option_type_choice, flags, 0, 0, (void *)&(const struct m_opt_choice_alternatives[]){OPT_HELPER_REMOVEPAREN choices, {NULL}}, 1, offsetof(struct MPOpts, varname)}
+#define OPT_TIME(optname, varname, flags) {optname, NULL, &m_option_type_time, flags, 0, 0, NULL, 1, offsetof(struct MPOpts, varname)}
#endif /* MPLAYER_M_OPTION_H */