summaryrefslogtreecommitdiffstats
path: root/video/out
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-09-14 15:59:10 +0200
committerwm4 <wm4@nowhere>2014-09-14 15:59:10 +0200
commitb44571ababeb368e94df6665c1d370d817a51135 (patch)
treed101baefae7e1d39d54ffe70078a23a2dc847830 /video/out
parent955671f64aca64f66e7967b6a276776af324ad39 (diff)
downloadmpv-b44571ababeb368e94df6665c1d370d817a51135.tar.bz2
mpv-b44571ababeb368e94df6665c1d370d817a51135.tar.xz
x11: remove unused function
Diffstat (limited to 'video/out')
-rw-r--r--video/out/x11_common.c8
-rw-r--r--video/out/x11_common.h2
2 files changed, 1 insertions, 9 deletions
diff --git a/video/out/x11_common.c b/video/out/x11_common.c
index 46bf8c18d6..24dce5f27c 100644
--- a/video/out/x11_common.c
+++ b/video/out/x11_common.c
@@ -1578,7 +1578,7 @@ int vo_x11_control(struct vo *vo, int *events, int request, void *arg)
vo_x11_update_window_title(vo);
return VO_TRUE;
case VOCTRL_GET_DISPLAY_FPS: {
- double fps = vo_x11_vm_get_fps(vo);
+ double fps = x11->current_display_fps;
if (fps <= 0)
break;
*(double *)arg = fps;
@@ -1681,12 +1681,6 @@ static void vo_x11_selectinput_witherr(struct vo *vo,
}
}
-double vo_x11_vm_get_fps(struct vo *vo)
-{
- struct vo_x11_state *x11 = vo->x11;
- return x11->current_display_fps;
-}
-
bool vo_x11_screen_is_composited(struct vo *vo)
{
struct vo_x11_state *x11 = vo->x11;
diff --git a/video/out/x11_common.h b/video/out/x11_common.h
index 4c11ad1465..f41654c455 100644
--- a/video/out/x11_common.h
+++ b/video/out/x11_common.h
@@ -120,6 +120,4 @@ void vo_x11_clear_background(struct vo *vo, const struct mp_rect *rc);
void vo_x11_clearwindow(struct vo *vo, Window vo_window);
int vo_x11_control(struct vo *vo, int *events, int request, void *arg);
-double vo_x11_vm_get_fps(struct vo *vo);
-
#endif /* MPLAYER_X11_COMMON_H */