vdpau: fix segfault when vdpau device could not be created

This commit is contained in:
Thijs Vermeir 2010-07-19 11:34:39 +02:00
parent 7462a64398
commit d15418d6aa

View file

@ -147,6 +147,7 @@ gst_vdp_device_constructed (GObject * object)
&device->vdp_get_proc_address); &device->vdp_get_proc_address);
if (status != VDP_STATUS_OK) { if (status != VDP_STATUS_OK) {
GST_ERROR_OBJECT (device, "Could not create VDPAU device"); GST_ERROR_OBJECT (device, "Could not create VDPAU device");
device->device = VDP_INVALID_HANDLE;
XCloseDisplay (device->display); XCloseDisplay (device->display);
device->display = NULL; device->display = NULL;