changeset 28417:ca1c277b7d7e

Check for change_d3d_backbuffer failure.
author reimar
date Tue, 03 Feb 2009 10:16:03 +0000
parents 0e24a99d51f5
children 2e77aca35aaf
files libvo/vo_direct3d.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_direct3d.c	Tue Feb 03 10:14:44 2009 +0000
+++ b/libvo/vo_direct3d.c	Tue Feb 03 10:16:03 2009 +0000
@@ -492,7 +492,8 @@
 
     if (vo_dwidth > priv->cur_backbuf_width ||
         vo_dheight > priv->cur_backbuf_height) {
-        change_d3d_backbuffer (BACKBUFFER_RESET);
+        if (!change_d3d_backbuffer(BACKBUFFER_RESET))
+            return 0;
     }
 
     /* Destroy the OSD textures. They should always match the new dimensions