options: increase the default --image-display-duration

1 second is too short to view images, so increase the default duration
to 5 seconds.
This commit is contained in:
Guido Cella 2024-11-10 16:17:34 +01:00 committed by Dudemanguy
parent 43d896657e
commit 476ed609ea
2 changed files with 2 additions and 2 deletions

View File

@ -3260,7 +3260,7 @@ Window
``--image-display-duration=<seconds|inf>`` ``--image-display-duration=<seconds|inf>``
If the current file is an image, play the image for the given amount of If the current file is an image, play the image for the given amount of
seconds (default: 1). ``inf`` means the file is kept open forever (until seconds (default: 5). ``inf`` means the file is kept open forever (until
the user stops playback manually). the user stops playback manually).
Unlike ``--keep-open``, the player is not paused, but simply continues Unlike ``--keep-open``, the player is not paused, but simply continues

View File

@ -1041,7 +1041,7 @@ static const struct MPOpts mp_default_opts = {
.play_frames = -1, .play_frames = -1,
.rebase_start_time = true, .rebase_start_time = true,
.keep_open_pause = true, .keep_open_pause = true,
.image_display_duration = 1.0, .image_display_duration = 5.0,
.stream_id = { { [STREAM_AUDIO] = -1, .stream_id = { { [STREAM_AUDIO] = -1,
[STREAM_VIDEO] = -1, [STREAM_VIDEO] = -1,
[STREAM_SUB] = -1, }, [STREAM_SUB] = -1, },