summaryrefslogtreecommitdiffstats
path: root/libvo/video_out.h
diff options
context:
space:
mode:
authorUoti Urpala <uau@mplayer2.org>2011-12-05 06:36:20 +0200
committerUoti Urpala <uau@mplayer2.org>2011-12-06 07:47:35 +0200
commit253f62c564443b93604f4bac610c6e7dc7f58824 (patch)
tree5271e93ea67928f6f5db5c34189cb9190a61116d /libvo/video_out.h
parentad0348cf0a7459c0581deaf3ed7d8b73a12cc73f (diff)
downloadmpv-253f62c564443b93604f4bac610c6e7dc7f58824.tar.bz2
mpv-253f62c564443b93604f4bac610c6e7dc7f58824.tar.xz
core, vo: new window refresh logic, add slow-video OSD redraw
Remove code refreshing window contents after events such as resize from vo_vdpau, vo_gl and vo_xv. Instead have them simply set a flag indicating that a refresh is needed, and have the player core perform that refresh by doing an OSD redraw. Also add support for updating the OSD contents over existing frames during slow-but-not-paused playback. The VOs now also request a refresh if parameters affecting the picture change (equalizer settings, colormatrix, VDPAU deinterlacing setting). Even previously the picture was typically redrawn with the new settings while paused because new OSD messages associated with setting changes triggered a redraw, but this did not happen if OSD was turned off. A minor imperfection is that now window system events can trigger a single one-frame step forward when using vo_xv after pausing so that vo_xv does not yet have a copy of the current image. This could be fixed but I think it's not important enough to bother.
Diffstat (limited to 'libvo/video_out.h')
-rw-r--r--libvo/video_out.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libvo/video_out.h b/libvo/video_out.h
index 032a32b1cc..0a56fd23a9 100644
--- a/libvo/video_out.h
+++ b/libvo/video_out.h
@@ -263,6 +263,7 @@ struct vo {
struct mp_image *waiting_mpi;
double next_pts; // pts value of the next frame if any
double next_pts2; // optional pts of frame after that
+ bool want_redraw; // visible frame wrong (window resize), needs refresh
bool redrawing; // between redrawing frame and flipping it
double flip_queue_offset; // queue flip events at most this much in advance