mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +00:00
player: add --playlist-pos option
Oddly often requested.
This commit is contained in:
@@ -200,6 +200,8 @@ const m_option_t mp_opts[] = {
|
||||
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_CHOICE_OR_INT("playlist-pos", playlist_pos, 0, 0, INT_MAX, ({"no", -1})),
|
||||
|
||||
OPT_FLAG("pause", pause, M_OPT_FIXED),
|
||||
OPT_CHOICE("keep-open", keep_open, 0,
|
||||
({"no", 0},
|
||||
@@ -754,6 +756,7 @@ const struct MPOpts mp_default_opts = {
|
||||
.term_osd = 2,
|
||||
.term_osd_bar_chars = "[-+-]",
|
||||
.consolecontrols = 1,
|
||||
.playlist_pos = -1,
|
||||
.play_frames = -1,
|
||||
.keep_open = 0,
|
||||
.stream_id = { { [STREAM_AUDIO] = -1,
|
||||
|
||||
@@ -167,6 +167,7 @@ typedef struct MPOpts {
|
||||
float heartbeat_interval;
|
||||
int player_idle_mode;
|
||||
int consolecontrols;
|
||||
int playlist_pos;
|
||||
struct m_rel_time play_start;
|
||||
struct m_rel_time play_end;
|
||||
struct m_rel_time play_length;
|
||||
|
||||
Reference in New Issue
Block a user