vdpau: fix segfault when vdpau device could not be created
This commit is contained in:
parent
7462a64398
commit
d15418d6aa
@ -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;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user