diff options
author | Tomas Carnecky <tom@dbservice.com> | 2008-08-28 18:05:40 -0400 |
---|---|---|
committer | Eamon Walsh <ewalsh@tycho.nsa.gov> | 2008-08-28 18:05:40 -0400 |
commit | ebea78cdba0ff14a397239ee1936bd254c181e1b (patch) | |
tree | 3937720753cc112aaf9eb71ba0dcb39674362b98 /Xext/xvmc.c | |
parent | ec7907f8fa04dcff2649cc4846975844314f737e (diff) |
Prepare for array-index based devPrivates.
TODO: static indices can be made just an int; some indices
can be combined.
Diffstat (limited to 'Xext/xvmc.c')
-rw-r--r-- | Xext/xvmc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Xext/xvmc.c b/Xext/xvmc.c index dc1e7dd98..ad1b8abc0 100644 --- a/Xext/xvmc.c +++ b/Xext/xvmc.c @@ -34,7 +34,8 @@ #define DR_CLIENT_DRIVER_NAME_SIZE 48 #define DR_BUSID_SIZE 48 -static DevPrivateKey XvMCScreenKey = NULL; +static int XvMCScreenKeyIndex; +static DevPrivateKey XvMCScreenKey; unsigned long XvMCGeneration = 0; @@ -709,7 +710,7 @@ XvMCScreenInit(ScreenPtr pScreen, int num, XvMCAdaptorPtr pAdapt) { XvMCScreenPtr pScreenPriv; - XvMCScreenKey = &XvMCScreenKey; + XvMCScreenKey = &XvMCScreenKeyIndex; if(!(pScreenPriv = (XvMCScreenPtr)xalloc(sizeof(XvMCScreenRec)))) return BadAlloc; |