Commit 15518786 authored by Jean-Paul Saman's avatar Jean-Paul Saman

xvba_driver: remove local X11 Display connection, use only the provided one from the application.

parent ae09755a
......@@ -125,7 +125,6 @@ static void xvba_common_Terminate(xvba_driver_data_t *driver_data)
}
xvba_gate_exit();
XCloseDisplay(driver_data->x11_dpy_local);
}
// vaInitialize
......@@ -135,10 +134,6 @@ static VAStatus xvba_common_Initialize(xvba_driver_data_t *driver_data)
int fglrx_major_version, fglrx_minor_version, fglrx_micro_version;
unsigned int device_id;
driver_data->x11_dpy_local = XOpenDisplay(driver_data->x11_dpy_name);
if (!driver_data->x11_dpy_local)
return VA_STATUS_ERROR_UNKNOWN;
if (!fglrx_is_dri_capable(driver_data->x11_dpy, driver_data->x11_screen))
return VA_STATUS_ERROR_UNKNOWN;
......
......@@ -72,7 +72,6 @@ struct xvba_driver_data {
Display *x11_dpy;
const char *x11_dpy_name;
int x11_screen;
Display *x11_dpy_local;
XVBADecodeCap *xvba_decode_caps;
unsigned int xvba_decode_caps_count;
XVBASurfaceCap *xvba_surface_caps;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment