summaryrefslogtreecommitdiffstats
path: root/cfg-mplayer.h
diff options
context:
space:
mode:
authorUoti Urpala <uau@mplayer2.org>2011-07-28 11:39:43 +0300
committerUoti Urpala <uau@mplayer2.org>2011-07-29 05:50:38 +0300
commitf25accbc510b641ac75a1f274376616417763ae5 (patch)
tree8ef7aa6cc1470fb61f2cd46a3b82aec6cc06ead3 /cfg-mplayer.h
parente873d703e956d3e2e68b9e18562983b029b5c7a8 (diff)
downloadmpv-f25accbc510b641ac75a1f274376616417763ae5.tar.bz2
mpv-f25accbc510b641ac75a1f274376616417763ae5.tar.xz
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.
Diffstat (limited to 'cfg-mplayer.h')
-rw-r--r--cfg-mplayer.h2
1 files changed, 1 insertions, 1 deletions
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},