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/subpicture.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/xvmc/subpicture.c') diff --git a/src/xvmc/subpicture.c b/src/xvmc/subpicture.c index c8f70c90d0c..09e9c98e6af 100644 --- a/src/xvmc/subpicture.c +++ b/src/xvmc/subpicture.c @@ -2,6 +2,7 @@ #include #include #include +#include Status XvMCCreateSubpicture ( @@ -13,6 +14,7 @@ Status XvMCCreateSubpicture int xvimage_id ) { + Display *dpy = display; assert(display); if (!context) @@ -38,7 +40,8 @@ Status XvMCCreateSubpicture subpicture->component_order[2] = 0; subpicture->component_order[3] = 0; /* TODO: subpicture->privData = ;*/ - + + SyncHandle(); return Success; } -- cgit v1.2.3