Skip to content
Snippets Groups Projects
Commit 67a78178 authored by Alexandre Janniaux's avatar Alexandre Janniaux Committed by Rémi Denis-Courmont
Browse files

interop_vdpau: avoid loading decoder device without X11

The decoder device was loaded when running in KMS window, leading to
crashes.
parent 255c27e6
No related branches found
No related tags found
Loading
Pipeline #159748 passed with stage
in 15 minutes and 1 second
......@@ -211,7 +211,10 @@ static const struct vlc_decoder_device_operations dev_ops = {
static int
DecoderDeviceOpen(vlc_decoder_device *device, vout_window_t *window)
{
if (!window || !vlc_xlib_init(VLC_OBJECT(window)))
if (!window || window->type != VOUT_WINDOW_TYPE_XID)
return VLC_EGENERIC;
if (!vlc_xlib_init(VLC_OBJECT(window)))
return VLC_EGENERIC;
vdpau_decoder_device_t *sys = vlc_obj_malloc(VLC_OBJECT(device), sizeof(*sys));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment