path: root/core/cfg-mplayer.h
diff options
authorwm4 <wm4@nowhere>2012-11-13 00:56:20 +0100
committerwm4 <wm4@nowhere>2012-11-16 21:21:15 +0100
commitf1175cd905f5e89427ee7bfa14439ecdbffdfb11 (patch)
treec3b2edf96adeb97274b3f9918eea6eb34f2d6b68 /core/cfg-mplayer.h
parentb7052b431c92c2babd032885701fb56dfd3ec452 (diff)
core: add --keep-open, which doesn't close the file on EOF
The --keep-open option causes mpv not to close the current file. Instead, it will pause, and allow the user to seek around. When seeking beyond the end of the file, mpv does a precise seek back to the previous last known position that produced video output. In some corner cases, mpv might not be able to produce video output at all, despite having created a VO. (Possibly when only 1 frame could be decoded, but the video filter chain queues frames. Then a VO would be created, without sending an actual video frame to the VO.) In these cases, the VO window will not redraw, not even OSD. Based on a patch by coax [1]. [1]
Diffstat (limited to 'core/cfg-mplayer.h')
1 files changed, 1 insertions, 1 deletions
diff --git a/core/cfg-mplayer.h b/core/cfg-mplayer.h
index c45d4b42c7..4c7098af2c 100644
--- a/core/cfg-mplayer.h
+++ b/core/cfg-mplayer.h
@@ -380,8 +380,8 @@ const m_option_t common_opts[] = {
OPT_REL_TIME("end", play_end, 0),
OPT_REL_TIME("length", play_length, 0),
- // start paused
OPT_FLAG_ON("pause", start_paused, 0),
+ OPT_FLAG_ON("keep-open", keep_open, 0),
// AVI specific: force non-interleaved mode
{"avi-ni", &force_ni, CONF_TYPE_FLAG, 0, 0, 1, NULL},