summaryrefslogtreecommitdiffstats
path: root/options/options.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-08-17 22:45:44 +0200
committerwm4 <wm4@nowhere>2016-08-17 22:46:48 +0200
commitf5bbb5aed22f9c52ce078522dc3da6a9403e8a9d (patch)
treea37070ada1f37719257197e1551074ded8b38513 /options/options.h
parent07f8b647547cadb61d0677200faeaf1498b8377e (diff)
downloadmpv-f5bbb5aed22f9c52ce078522dc3da6a9403e8a9d.tar.bz2
mpv-f5bbb5aed22f9c52ce078522dc3da6a9403e8a9d.tar.xz
player: add option to control duration of image display
The --image-display-duration option controls how long an image is displayed. It's also possible to display the image forever (until manual user interaction stops playback). With this, the core drops the old method to "drain" video (i.e. waiting for the last frame duration on end of playback). Instead, we reuse MPContext.time_frame. The old mechanism was disabled for non-images anyway. Fixes #3425.
Diffstat (limited to 'options/options.h')
-rw-r--r--options/options.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/options/options.h b/options/options.h
index 4de4a831bb..263caaa8de 100644
--- a/options/options.h
+++ b/options/options.h
@@ -190,6 +190,7 @@ typedef struct MPOpts {
int ignore_path_in_watch_later_config;
int pause;
int keep_open;
+ double image_display_duration;
char *lavfi_complex;
int stream_id[2][STREAM_TYPE_COUNT];
int stream_id_ff[STREAM_TYPE_COUNT];