# HG changeset patch # User albeu # Date 1180616571 0 # Node ID a829005cbcd5c6082473fe0dc18057493df30753 # Parent ae42377176015240f1341e06f6390a6838c46903 Make the length property use the time type. diff -r ae4237717601 -r a829005cbcd5 DOCS/tech/slave.txt --- a/DOCS/tech/slave.txt Thu May 31 12:42:02 2007 +0000 +++ b/DOCS/tech/slave.txt Thu May 31 13:02:51 2007 +0000 @@ -400,7 +400,7 @@ stream_start pos 0 X start pos in stream stream_end pos 0 X end pos in stream stream_length pos 0 X (end - start) -length double X length of file in seconds +length time X length of file in seconds metadata str list X list of metadata key/value metadata/* string X metadata values volume float 0 100 X X X change volume diff -r ae4237717601 -r a829005cbcd5 command.c --- a/command.c Thu May 31 12:42:02 2007 +0000 +++ b/command.c Thu May 31 13:02:51 2007 +0000 @@ -1383,8 +1383,8 @@ M_OPT_MIN, 0, 0, NULL }, { "stream_length", mp_property_stream_length, CONF_TYPE_POSITION, M_OPT_MIN, 0, 0, NULL }, - { "length", mp_property_length, CONF_TYPE_DOUBLE, - 0, 0, 0, NULL }, + { "length", mp_property_length, CONF_TYPE_TIME, + M_OPT_MIN, 0, 0, NULL }, { "metadata", mp_property_metadata, CONF_TYPE_STRING_LIST, 0, 0, 0, NULL },