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/context.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/xvmc/context.c') diff --git a/src/xvmc/context.c b/src/xvmc/context.c index 273f658029..9c2b6648bb 100644 --- a/src/xvmc/context.c +++ b/src/xvmc/context.c @@ -1,6 +1,7 @@ #include #include #include +#include #include #include #include @@ -137,6 +138,7 @@ Status XvMCCreateContext(Display *display, XvPortID port, int surface_type_id, i struct vlScreen *vl_scrn; struct vlContext *vl_ctx; struct pipe_context *pipe; + Display *dpy = display; assert(display); @@ -176,6 +178,7 @@ Status XvMCCreateContext(Display *display, XvPortID port, int surface_type_id, i context->port = port; context->privData = vl_ctx; + SyncHandle(); return Success; } -- cgit v1.2.3