diff options
author | Uoti Urpala <uau@symbol.nonexistent.invalid> | 2008-04-21 05:18:40 +0300 |
---|---|---|
committer | Uoti Urpala <uau@symbol.nonexistent.invalid> | 2008-04-23 13:47:44 +0300 |
commit | ef74d21b1f1d96b2e3f180c021998fbdd80ffcba (patch) | |
tree | e0600e83f388e0c2865153c0c8fc4e1aed3faf1c /command.c | |
parent | 67778746ce3c917d874baa7c2e6b2a21a50c27e2 (diff) | |
download | mpv-ef74d21b1f1d96b2e3f180c021998fbdd80ffcba.tar.bz2 mpv-ef74d21b1f1d96b2e3f180c021998fbdd80ffcba.tar.xz |
Move loop_times to option struct
Diffstat (limited to 'command.c')
-rw-r--r-- | command.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -177,18 +177,19 @@ static int mp_property_osdlevel(m_option_t * prop, int action, void *arg, static int mp_property_loop(m_option_t * prop, int action, void *arg, MPContext * mpctx) { + struct MPOpts *opts = &mpctx->opts; switch (action) { case M_PROPERTY_PRINT: if (!arg) return M_PROPERTY_ERROR; - if (mpctx->loop_times < 0) + if (opts->loop_times < 0) *(char**)arg = strdup("off"); - else if (mpctx->loop_times == 0) + else if (opts->loop_times == 0) *(char**)arg = strdup("inf"); else break; return M_PROPERTY_OK; } - return m_property_int_range(prop, action, arg, &mpctx->loop_times); + return m_property_int_range(prop, action, arg, &opts->loop_times); } /// Playback speed (RW) |