diff options
author | wm4 <wm4@nowhere> | 2014-11-18 00:09:42 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-11-18 01:36:35 +0100 |
commit | 4bd6c91d9b4c4d35d0d71793933947861e45daad (patch) | |
tree | 1c22de1369e8ec8028e20560a653d9ba7deba371 /options/options.c | |
parent | ed5923437848bb4c1afa7104c29f21c7a44743f0 (diff) | |
download | mpv-4bd6c91d9b4c4d35d0d71793933947861e45daad.tar.bz2 mpv-4bd6c91d9b4c4d35d0d71793933947861e45daad.tar.xz |
command: implement A-B loops
Probably needs to be polished a bit more. Also, might require a key
binding that can set/clear the loop points in a more intuitive way.
For now, something like this can be put into input.conf to use it:
ctrl+y set ab-loop-a ${time-pos} # set A
ctrl+x set ab-loop-b ${time-pos} # set B
ctrl+c set ab-loop-a no # clear (mostly)
Fixes #1241.
Diffstat (limited to 'options/options.c')
-rw-r--r-- | options/options.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/options/options.c b/options/options.c index ba251f6216..4a4d83210b 100644 --- a/options/options.c +++ b/options/options.c @@ -180,6 +180,9 @@ const m_option_t mp_opts[] = { OPT_REL_TIME("end", play_end, 0), OPT_REL_TIME("length", play_length, 0), + OPT_TIME("ab-loop-a", ab_loop[0], 0, .min = MP_NOPTS_VALUE), + OPT_TIME("ab-loop-b", ab_loop[1], 0, .min = MP_NOPTS_VALUE), + OPT_FLAG("pause", pause, M_OPT_FIXED), OPT_FLAG("keep-open", keep_open, 0), |