diff options
author | Younes Manton <younes.m@gmail.com> | 2008-12-05 02:27:10 -0500 |
---|---|---|
committer | Younes Manton <younes.m@gmail.com> | 2009-01-10 13:52:05 -0500 |
commit | 9cbcdd86d08b743d443fb0c6e5316632a4b4f99b (patch) | |
tree | 3e68b2413755adeb6bbe5f463d92e840207fc226 /src | |
parent | ebd38dd0d63151d6ee89f98af3450b3b9c4fa1f4 (diff) |
g3dvl: Work around mplayer weirdness in XvMCPutSurface().
Diffstat (limited to 'src')
-rw-r--r-- | src/libXvMC/surface.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/libXvMC/surface.c b/src/libXvMC/surface.c index 6031b39d10..67c179e66d 100644 --- a/src/libXvMC/surface.c +++ b/src/libXvMC/surface.c @@ -261,8 +261,14 @@ Status XvMCPutSurface assert(srcx + srcw - 1 < surface->width); assert(srcy + srch - 1 < surface->height); - assert(destx + destw - 1 < width); - assert(desty + desth - 1 < height); + /* XXX: Some apps (mplayer) hit these asserts because they call + * this function after the window has been resized by the WM + * but before they've handled the corresponding XEvent and + * know about the new dimensions. The output will be clipped + * for a few frames until the app updates destw and desth. + */ + /*assert(destx + destw - 1 < width); + assert(desty + desth - 1 < height);*/ vl_sfc = surface->privData; |