Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
ec17e28f
Commit
ec17e28f
authored
Dec 15, 2003
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/gui/skins/src/skin_main.cpp: bail out if we can't open an X11 display.
parent
bd034af3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
modules/gui/skins/src/skin_main.cpp
modules/gui/skins/src/skin_main.cpp
+7
-2
No files found.
modules/gui/skins/src/skin_main.cpp
View file @
ec17e28f
...
...
@@ -2,7 +2,7 @@
* skin-main.cpp: skins plugin for VLC
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* $Id: skin_main.cpp,v 1.5
3 2003/12/03 13:52:36 anil
Exp $
* $Id: skin_main.cpp,v 1.5
4 2003/12/15 22:04:25 gbazin
Exp $
*
* Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr>
...
...
@@ -70,6 +70,12 @@ static int Open ( vlc_object_t *p_this )
intf_thread_t
*
p_intf
=
(
intf_thread_t
*
)
p_this
;
g_pIntf
=
p_intf
;
#if defined X11_SKINS
// Open/Test for an X11 display
Display
*
display
=
XOpenDisplay
(
NULL
);
if
(
!
display
)
return
VLC_EGENERIC
;
#endif
// Allocate instance and initialize some members
p_intf
->
p_sys
=
(
intf_sys_t
*
)
malloc
(
sizeof
(
intf_sys_t
)
);
if
(
p_intf
->
p_sys
==
NULL
)
...
...
@@ -100,7 +106,6 @@ static int Open ( vlc_object_t *p_this )
#if defined X11_SKINS
// Initialize X11
Display
*
display
=
XOpenDisplay
(
NULL
);
p_intf
->
p_sys
->
display
=
display
;
vlc_mutex_init
(
p_intf
,
&
p_intf
->
p_sys
->
xlock
);
// Fake window to receive broadcast events
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment