[vlc-devel] [PATCH 02/10] vdpau: keep the device used to create the vdp in the decoder device
Steve Lhomme
robux4 at ycbcr.xyz
Fri Nov 22 14:12:30 CET 2019
---
modules/hw/vdpau/vlc_vdpau.h | 1 +
modules/video_output/opengl/converter_vdpau.c | 5 ++---
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/modules/hw/vdpau/vlc_vdpau.h b/modules/hw/vdpau/vlc_vdpau.h
index 81f5ad1c50a..abdee8d77d9 100644
--- a/modules/hw/vdpau/vlc_vdpau.h
+++ b/modules/hw/vdpau/vlc_vdpau.h
@@ -277,6 +277,7 @@ typedef struct vlc_vdp_video_field
typedef struct {
vdp_t *vdp;
+ VdpDevice device;
} vdpau_decoder_device_t;
static inline vdpau_decoder_device_t *GetVDPAUOpaqueDevice(vlc_decoder_device *device)
diff --git a/modules/video_output/opengl/converter_vdpau.c b/modules/video_output/opengl/converter_vdpau.c
index f71585bdf5a..a2a2d0eb2ee 100644
--- a/modules/video_output/opengl/converter_vdpau.c
+++ b/modules/video_output/opengl/converter_vdpau.c
@@ -224,9 +224,8 @@ DecoderDeviceOpen(vlc_decoder_device *device, vout_window_t *window)
if (unlikely(sys == NULL))
return VLC_ENOMEM;
- VdpDevice vdpdevice;
-
- if (vdp_get_x11(window->display.x11, -1, &sys->vdp, &vdpdevice) != VDP_STATUS_OK)
+ if (vdp_get_x11(window->display.x11, -1,
+ &sys->vdp, &sys->device) != VDP_STATUS_OK)
{
vlc_obj_free(VLC_OBJECT(device), sys);
return VLC_EGENERIC;
--
2.17.1
More information about the vlc-devel
mailing list