summaryrefslogtreecommitdiffstats
path: root/options
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-08-16 00:05:02 +0200
committerwm4 <wm4@nowhere>2014-08-16 00:05:02 +0200
commit4f984b987c323b63db9e4926da8f6265f841a6ca (patch)
tree76db26ac39918a25fbd3bf4d9602123de430df47 /options
parent07aba86b37887c0aef7ea90af250fcf19062369b (diff)
downloadmpv-4f984b987c323b63db9e4926da8f6265f841a6ca.tar.bz2
mpv-4f984b987c323b63db9e4926da8f6265f841a6ca.tar.xz
video: add --display-fps switch to control framedrop FPS
Since the display FPS is currently detected on X11 only (and even there it's known to be wrong on certain setups), it seems like a good idea to make this user-configurable.
Diffstat (limited to 'options')
-rw-r--r--options/options.c2
-rw-r--r--options/options.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/options/options.c b/options/options.c
index 58e8d9dec4..aacb1b725a 100644
--- a/options/options.c
+++ b/options/options.c
@@ -462,6 +462,8 @@ const m_option_t mp_opts[] = {
{"decoder", 2},
{"decoder+vo", 3})),
+ OPT_DOUBLE("display-fps", frame_drop_fps, M_OPT_MIN, .min = 0),
+
OPT_FLAG("audiodrop", insert_silence, 0),
OPT_FLAG("untimed", untimed, M_OPT_FIXED),
diff --git a/options/options.h b/options/options.h
index 9b48a0162e..65007bd22e 100644
--- a/options/options.h
+++ b/options/options.h
@@ -137,6 +137,7 @@ typedef struct MPOpts {
float default_max_pts_correction;
int autosync;
int frame_dropping;
+ double frame_drop_fps;
int insert_silence;
int term_osd;
int term_osd_bar;