From 2ef8c60e558938686196bf8ff4d22fd57903bf4c Mon Sep 17 00:00:00 2001 From: Cooper Yuan Date: Tue, 15 Sep 2009 13:16:56 +0800 Subject: xvmc: Generate new resource ID in _XIDHandler, otherwise it's invalid. --- src/xvmc/surface.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/xvmc/surface.c') diff --git a/src/xvmc/surface.c b/src/xvmc/surface.c index 7c5f45bd34..fea351b84f 100644 --- a/src/xvmc/surface.c +++ b/src/xvmc/surface.c @@ -1,6 +1,7 @@ #include #include #include +#include #include #include #include @@ -61,6 +62,7 @@ Status XvMCCreateSurface(Display *display, XvMCContext *context, XvMCSurface *su { struct vlContext *vl_ctx; struct vlSurface *vl_sfc; + Display *dpy = display; assert(display); @@ -90,6 +92,7 @@ Status XvMCCreateSurface(Display *display, XvMCContext *context, XvMCSurface *su surface->height = context->height; surface->privData = vl_sfc; + SyncHandle(); return Success; } -- cgit v1.2.3