[vlc-commits] vdpau/display: no need to init X11

Steve Lhomme git at videolan.org
Mon Dec 2 13:43:20 CET 2019


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Tue Nov 26 09:47:10 2019 +0100| [e2e8f2cabe5ca1d364e10d1f36dd753be2f2249f] | committer: Steve Lhomme

vdpau/display: no need to init X11

Either it's initialized by the decoder device we require or we're not going to
use it at all.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e2e8f2cabe5ca1d364e10d1f36dd753be2f2249f
---

 modules/hw/vdpau/display.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/modules/hw/vdpau/display.c b/modules/hw/vdpau/display.c
index c91633a205..5963be6371 100644
--- a/modules/hw/vdpau/display.c
+++ b/modules/hw/vdpau/display.c
@@ -288,9 +288,6 @@ static int Control(vout_display_t *vd, int query, va_list ap)
 static int Open(vout_display_t *vd, const vout_display_cfg_t *cfg,
                 video_format_t *fmtp, vlc_video_context *context)
 {
-    if (!vlc_xlib_init(VLC_OBJECT(vd)))
-        return VLC_EGENERIC;
-
     vout_display_sys_t *sys = malloc(sizeof (*sys));
     if (unlikely(sys == NULL))
         return VLC_ENOMEM;



More information about the vlc-commits mailing list