summaryrefslogtreecommitdiffstats
path: root/command.c
diff options
context:
space:
mode:
authorUoti Urpala <uau@symbol.nonexistent.invalid>2008-04-21 05:18:40 +0300
committerUoti Urpala <uau@symbol.nonexistent.invalid>2008-04-23 13:47:44 +0300
commitef74d21b1f1d96b2e3f180c021998fbdd80ffcba (patch)
treee0600e83f388e0c2865153c0c8fc4e1aed3faf1c /command.c
parent67778746ce3c917d874baa7c2e6b2a21a50c27e2 (diff)
downloadmpv-ef74d21b1f1d96b2e3f180c021998fbdd80ffcba.tar.bz2
mpv-ef74d21b1f1d96b2e3f180c021998fbdd80ffcba.tar.xz
Move loop_times to option struct
Diffstat (limited to 'command.c')
-rw-r--r--command.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/command.c b/command.c
index 929f52b757..c5c3204d27 100644
--- a/command.c
+++ b/command.c
@@ -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)