From f25accbc510b641ac75a1f274376616417763ae5 Mon Sep 17 00:00:00 2001 From: Uoti Urpala Date: Thu, 28 Jul 2011 11:39:43 +0300 Subject: core: improve --loop handling Make per-file loop option start from --ss position, not always 0. Do looping in more cases; before looping was only done when encountering real end of file, now it also happens for example at --endpos or --frames limits. Also move the --ss option to the option struct. --- cfg-mplayer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cfg-mplayer.h') diff --git a/cfg-mplayer.h b/cfg-mplayer.h index b767d1c0f1..a07d5ee38e 100644 --- a/cfg-mplayer.h +++ b/cfg-mplayer.h @@ -497,7 +497,7 @@ const m_option_t common_opts[] = { // seek to byte/seconds position {"sb", &seek_to_byte, CONF_TYPE_POSITION, CONF_MIN, 0, 0, NULL}, - {"ss", &seek_to_sec, CONF_TYPE_TIME, 0, 0, 0, NULL}, + OPT_TIME("ss", seek_to_sec, 0), // stop at given position {"endpos", &end_at, CONF_TYPE_TIME_SIZE, 0, 0, 0, NULL}, -- cgit v1.2.3