Mesa (gallium-0.2): g3dvl: Work around mplayer weirdness in XvMCPutSurface( ).
Younes Manton
ymanton at kemper.freedesktop.org
Sat Jan 10 19:12:19 UTC 2009
Module: Mesa
Branch: gallium-0.2
Commit: 9cbcdd86d08b743d443fb0c6e5316632a4b4f99b
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=9cbcdd86d08b743d443fb0c6e5316632a4b4f99b
Author: Younes Manton <younes.m at gmail.com>
Date: Fri Dec 5 02:27:10 2008 -0500
g3dvl: Work around mplayer weirdness in XvMCPutSurface().
---
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 6031b39..67c179e 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;
More information about the mesa-commit
mailing list