# HG changeset patch # User reimar # Date 1233656163 0 # Node ID ca1c277b7d7eb7dc28edf8ffc79617dfb86770cc # Parent 0e24a99d51f55e6d33c793b1261638d210e41887 Check for change_d3d_backbuffer failure. diff -r 0e24a99d51f5 -r ca1c277b7d7e libvo/vo_direct3d.c --- 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