summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristophe Thommeret <hftom@free.fr>2009-02-19 23:33:10 +0000
committerChristophe Thommeret <hftom@free.fr>2009-02-19 23:33:10 +0000
commit55491cbc1b742aa6afde58c6c994efb59a5bf160 (patch)
tree8870fcf2365d62beca31b144b59e3017a377b502
parent2cc870f8270dfd550d621e46bf4c7a75e9c90f78 (diff)
downloadxine-lib-55491cbc1b742aa6afde58c6c994efb59a5bf160.tar.gz
xine-lib-55491cbc1b742aa6afde58c6c994efb59a5bf160.tar.bz2
Fix overlays recreation after pre-emption.
-rw-r--r--src/video_out/video_out_vdpau.c7
1 files changed, 7 insertions, 0 deletions
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; i<XINE_VORAW_MAX_OVL; ++i ) {
+ this->overlays[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;