summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-02-03 10:16:03 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-02-03 10:16:03 +0000
commitaf87ab3afdc2613ed6317f1eb534ff2cf878fce3 (patch)
treea4f1405ba396c5aec0f6a194ab30113cff4779bd /libvo
parentad8c8f6f28eda527dba28b57496fa5284d68cab1 (diff)
downloadmpv-af87ab3afdc2613ed6317f1eb534ff2cf878fce3.tar.bz2
mpv-af87ab3afdc2613ed6317f1eb534ff2cf878fce3.tar.xz
Check for change_d3d_backbuffer failure.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28452 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r--libvo/vo_direct3d.c3
1 files changed, 2 insertions, 1 deletions
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