summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
authorUoti Urpala <uau@glyph.nonexistent.invalid>2010-02-05 20:13:33 +0200
committerUoti Urpala <uau@glyph.nonexistent.invalid>2010-02-05 20:20:31 +0200
commite187de88a1ce7587827824ef9c16707dfb15718b (patch)
treef2511ec02ee11a528680d4ebc06365a0e48a5158 /mplayer.c
parent9118a5dd02c365e51a9f49dd34469dd7c26b89c7 (diff)
downloadmpv-e187de88a1ce7587827824ef9c16707dfb15718b.tar.bz2
mpv-e187de88a1ce7587827824ef9c16707dfb15718b.tar.xz
vo_vdpau: make queuing future frame flips adjustable
Add -vo vdpau suboptions "queuetime_windowed" and "queuetime_fs" to specify the maximum number of milliseconds how far into the future a frame flip can be queued using the VDPAU presentation queue functionality. The intended main use of these options is to allow disabling use of the queuing feature on systems where using it causes choppiness in other graphics behavior (this is an NVIDIA driver issue; the video itself isn't affected).
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/mplayer.c b/mplayer.c
index a6e3882157..1aa20e183d 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -2167,13 +2167,11 @@ static int sleep_until_update(struct MPContext *mpctx, float *time_frame,
//============================== SLEEP: ===================================
- if (mpctx->video_out->driver->flip_page_timed)
- *time_frame -= 0.05;
+ *time_frame -= mpctx->video_out->flip_queue_offset;
// flag 256 means: libvo driver does its timing (dvb card)
if (*time_frame > 0.001 && !(mpctx->sh_video->output_flags&256))
*time_frame = timing_sleep(mpctx, *time_frame);
- if (mpctx->video_out->driver->flip_page_timed)
- *time_frame += 0.05;
+ *time_frame += mpctx->video_out->flip_queue_offset;
return frame_time_remaining;
}