diff options
author | wm4 <wm4@nowhere> | 2014-11-13 17:25:59 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-11-13 17:26:22 +0100 |
commit | 13033ce2c4e05eaf031c09a4d41f3db9512af9c0 (patch) | |
tree | c0f1846b16e782085fbc5079fee7789983270ace /player/command.c | |
parent | dbf59abe0525ad38dac369af248ad735ef66cfe8 (diff) | |
download | mpv-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.c | 2 |
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} }; |