mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
vdpau: fix segfault when vdpau device could not be created
This commit is contained in:
parent
7462a64398
commit
d15418d6aa
1 changed files with 1 additions and 0 deletions
|
@ -147,6 +147,7 @@ gst_vdp_device_constructed (GObject * object)
|
|||
&device->vdp_get_proc_address);
|
||||
if (status != VDP_STATUS_OK) {
|
||||
GST_ERROR_OBJECT (device, "Could not create VDPAU device");
|
||||
device->device = VDP_INVALID_HANDLE;
|
||||
XCloseDisplay (device->display);
|
||||
device->display = NULL;
|
||||
|
||||
|
|
Loading…
Reference in a new issue