From 13033ce2c4e05eaf031c09a4d41f3db9512af9c0 Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 13 Nov 2014 17:25:59 +0100 Subject: command: make sub-properties more flexible This makes it work with all kind of types, instead of just some simple ones. --- player/command.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'player/command.c') 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} }; -- cgit v1.2.3