Commit b00399aa authored by Alexis Ballier's avatar Alexis Ballier Committed by Rémi Denis-Courmont

xosd: call vlc_xlib_init first

See: https://bugs.gentoo.org/show_bug.cgi?id=393439Signed-off-by: default avatarRémi Denis-Courmont <remi@remlab.net>
(cherry picked from commit 9b40c48c8aa69e71abb0263b1814ede7a370f7c9)
parent 4adf0897
...@@ -34,6 +34,7 @@ ...@@ -34,6 +34,7 @@
#include <vlc_playlist.h> #include <vlc_playlist.h>
#include <vlc_input.h> #include <vlc_input.h>
#include <vlc_interface.h> #include <vlc_interface.h>
#include <vlc_xlib.h>
#include <xosd.h> #include <xosd.h>
...@@ -109,6 +110,9 @@ static int Open( vlc_object_t *p_this ) ...@@ -109,6 +110,9 @@ static int Open( vlc_object_t *p_this )
xosd *p_osd; xosd *p_osd;
char *psz_font, *psz_colour; char *psz_font, *psz_colour;
if (!vlc_xlib_init(p_this))
return VLC_EGENERIC;
if( getenv( "DISPLAY" ) == NULL ) if( getenv( "DISPLAY" ) == NULL )
{ {
msg_Err( p_intf, "no display, please set the DISPLAY variable" ); msg_Err( p_intf, "no display, please set the DISPLAY variable" );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment