From bff1ac875c2c62ba5045bb953f800253c49361cb Mon Sep 17 00:00:00 2001 From: Thomas Balling Sørensen Date: Thu, 7 Oct 2010 00:26:46 +0200 Subject: vl: some more fixes and addition to the decoder handling --- src/gallium/state_trackers/vdpau/device.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/gallium/state_trackers/vdpau/device.c') diff --git a/src/gallium/state_trackers/vdpau/device.c b/src/gallium/state_trackers/vdpau/device.c index 4ca198e874d..496e2b8def0 100644 --- a/src/gallium/state_trackers/vdpau/device.c +++ b/src/gallium/state_trackers/vdpau/device.c @@ -26,6 +26,7 @@ **************************************************************************/ #include +#include #include #include #include @@ -51,8 +52,15 @@ vdp_imp_device_create_x11(Display *display, int screen, VdpDevice *device, VdpGe ret = VDP_STATUS_RESOURCES; goto no_dev; } + dev->display = display; dev->screen = screen; + dev->vscreen = vl_screen_create(display, screen); + if (!dev->vscreen) + { + ret = VDP_STATUS_RESOURCES; + goto no_vscreen; + } *device = vlAddDataHTAB(dev); if (*device == 0) { @@ -66,6 +74,8 @@ vdp_imp_device_create_x11(Display *display, int screen, VdpDevice *device, VdpGe return VDP_STATUS_OK; no_handle: + /* Destroy vscreen */ +no_vscreen: FREE(dev); no_dev: vlDestroyHTAB(); -- cgit v1.2.3