[vlc-devel] [PATCH] avcodec: vdpau: no need to init X11

Steve Lhomme robux4 at ycbcr.xyz
Wed Nov 27 10:26:49 CET 2019


Either it's initialized by the decoder device we require or we're not going to
use it at all.
---
 modules/hw/vdpau/avcodec.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/modules/hw/vdpau/avcodec.c b/modules/hw/vdpau/avcodec.c
index 06293bac156..b632e5ca3fb 100644
--- a/modules/hw/vdpau/avcodec.c
+++ b/modules/hw/vdpau/avcodec.c
@@ -178,12 +178,6 @@ static int Open(vlc_va_t *va, AVCodecContext *avctx, const AVPixFmtDescriptor *d
             return VLC_EGENERIC;
     }
 
-    if (!vlc_xlib_init(VLC_OBJECT(va)))
-    {
-        msg_Err(va, "Xlib is required for VDPAU");
-        return VLC_EGENERIC;
-    }
-
     unsigned codec_refs;
     switch (avctx->codec_id)
     {
-- 
2.17.1



More information about the vlc-devel mailing list