From 55491cbc1b742aa6afde58c6c994efb59a5bf160 Mon Sep 17 00:00:00 2001 From: Christophe Thommeret Date: Thu, 19 Feb 2009 23:33:10 +0000 Subject: Fix overlays recreation after pre-emption. --- src/video_out/video_out_vdpau.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src') diff --git a/src/video_out/video_out_vdpau.c b/src/video_out/video_out_vdpau.c index ac4dcd1a8..8b4923266 100644 --- a/src/video_out/video_out_vdpau.c +++ b/src/video_out/video_out_vdpau.c @@ -1695,6 +1695,13 @@ static void vdpau_reinit( vo_driver_t *this_gen ) } /* osd overlays need to be recreated */ + + int i; + for ( i=0; ioverlays[i].ovl_bitmap = VDP_INVALID_HANDLE; + this->overlays[i].bitmap_width = 0; + this->overlays[i].bitmap_height = 0; + } this->overlay_output = VDP_INVALID_HANDLE; this->overlay_output_width = this->overlay_output_height = 0; this->overlay_unscaled = VDP_INVALID_HANDLE; -- cgit v1.2.3