vo: reject vo_redraw_frame() if no frames have been drawn
commit0e752d586362b95288f1a94f7c2588016719d838
authorUoti Urpala <uau@mplayer2.org>
Tue, 28 Feb 2012 01:17:25 +0000 (28 03:17 +0200)
committerUoti Urpala <uau@mplayer2.org>
Tue, 28 Feb 2012 01:17:25 +0000 (28 03:17 +0200)
tree7073351402b63bf6c4e62eacf32528f8006aba76
parenta43a4aafd08650254a4b91fe73f82ec96bf2a6ef
vo: reject vo_redraw_frame() if no frames have been drawn

vo_xv crashed if existing frames had been lost due to a config() call
in the middle of a file and vo_redraw_frame() was called. Add checks
to reject vo_redraw_frame() unless at least one frame has been flipped
after the the last configuration change, so individual VOs do not have
to deal with this case.
libvo/video_out.c
libvo/video_out.h