summaryrefslogtreecommitdiff
path: root/src/xvmc/subpicture.c
diff options
context:
space:
mode:
authorCooper Yuan <cooperyuan@gmail.com>2009-09-15 13:16:56 +0800
committerCooper Yuan <cooperyuan@gmail.com>2009-09-15 13:16:56 +0800
commit2ef8c60e558938686196bf8ff4d22fd57903bf4c (patch)
tree9d36a228ce79a91838a9d5edd9a396eb8c53751e /src/xvmc/subpicture.c
parentef7746217176ba251dc6a5deb90c308c9964ed7b (diff)
xvmc: Generate new resource ID in _XIDHandler, otherwise it's invalid.
Diffstat (limited to 'src/xvmc/subpicture.c')
-rw-r--r--src/xvmc/subpicture.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/xvmc/subpicture.c b/src/xvmc/subpicture.c
index c8f70c90d0..09e9c98e6a 100644
--- a/src/xvmc/subpicture.c
+++ b/src/xvmc/subpicture.c
@@ -2,6 +2,7 @@
#include <X11/Xlib.h>
#include <X11/extensions/Xvlib.h>
#include <X11/extensions/XvMC.h>
+#include <X11/Xlibint.h>
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;
}