summaryrefslogtreecommitdiffstats
path: root/player/command.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-11-13 17:25:59 +0100
committerwm4 <wm4@nowhere>2014-11-13 17:26:22 +0100
commit13033ce2c4e05eaf031c09a4d41f3db9512af9c0 (patch)
treec0f1846b16e782085fbc5079fee7789983270ace /player/command.c
parentdbf59abe0525ad38dac369af248ad735ef66cfe8 (diff)
downloadmpv-13033ce2c4e05eaf031c09a4d41f3db9512af9c0.tar.bz2
mpv-13033ce2c4e05eaf031c09a4d41f3db9512af9c0.tar.xz
command: make sub-properties more flexible
This makes it work with all kind of types, instead of just some simple ones.
Diffstat (limited to 'player/command.c')
-rw-r--r--player/command.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/player/command.c b/player/command.c
index f53cec04c3..90ef7a8546 100644
--- a/player/command.c
+++ b/player/command.c
@@ -747,7 +747,7 @@ static int get_chapter_entry(int item, int action, void *arg, void *ctx)
double time = chapter_start_time(mpctx, item);
struct m_sub_property props[] = {
{"title", SUB_PROP_STR(name)},
- {"time", CONF_TYPE_TIME, {.time = time}},
+ {"time", {.type = CONF_TYPE_TIME}, {.time = time}},
{0}
};