From af87ab3afdc2613ed6317f1eb534ff2cf878fce3 Mon Sep 17 00:00:00 2001 From: reimar Date: Tue, 3 Feb 2009 10:16:03 +0000 Subject: [PATCH] Check for change_d3d_backbuffer failure. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28452 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/vo_direct3d.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libvo/vo_direct3d.c b/libvo/vo_direct3d.c index 64b84e01a6..ede069ee77 100644 --- a/libvo/vo_direct3d.c +++ b/libvo/vo_direct3d.c @@ -492,7 +492,8 @@ static int resize_d3d(void) 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