diff options
author | Zou Nan hai <nanhai.zou@intel.com> | 2008-08-19 16:27:12 +0800 |
---|---|---|
committer | Zhenyu Wang <zhenyu.z.wang@intel.com> | 2008-08-20 11:08:42 +0800 |
commit | dc295d2b3cbdc5b4ca1f46b1c5a8e5f83faeb878 (patch) | |
tree | 612eef153dad6afbd993711ef91f3ac2c08473d8 | |
parent | 70e85e6ce4cd53ab4685440605fcfe65995cb2e4 (diff) |
Fix from He Shuang(shuang.he@intel.com),
XvMCDestroyContext to check pointer valid
(cherry picked from commit 385dc85881c56e218e7d17d7e1d022568aa29cfb)
-rw-r--r-- | src/xvmc/intel_xvmc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xvmc/intel_xvmc.c b/src/xvmc/intel_xvmc.c index 8fabb35e..ea39069e 100644 --- a/src/xvmc/intel_xvmc.c +++ b/src/xvmc/intel_xvmc.c @@ -458,11 +458,11 @@ Status XvMCCreateContext(Display *display, XvPortID port, Status XvMCDestroyContext(Display *display, XvMCContext *context) { Status ret; - int screen = DefaultScreen(display); + int screen; if (!display || !context) return XvMCBadContext; - + screen = DefaultScreen(display); ret = (xvmc_driver->destroy_context)(display, context); if (ret) { XVMC_ERR("destroy context fail\n"); |