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
de22c758
Commit
de22c758
authored
Jan 25, 2004
by
Cyril Deguet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* all: fixed segfaults when initialization fails
parent
b16f809c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
15 deletions
+19
-15
modules/gui/skins2/src/skin_main.cpp
modules/gui/skins2/src/skin_main.cpp
+6
-6
modules/gui/skins2/x11/x11_display.cpp
modules/gui/skins2/x11/x11_display.cpp
+10
-7
modules/gui/skins2/x11/x11_factory.cpp
modules/gui/skins2/x11/x11_factory.cpp
+3
-2
No files found.
modules/gui/skins2/src/skin_main.cpp
View file @
de22c758
...
...
@@ -2,7 +2,7 @@
* skin_main.cpp
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* $Id: skin_main.cpp,v 1.
2 2004/01/11 17:12:17
asmax Exp $
* $Id: skin_main.cpp,v 1.
3 2004/01/25 13:59:33
asmax Exp $
*
* Authors: Cyril Deguet <asmax@via.ecp.fr>
* Olivier Teulire <ipkiss@via.ecp.fr>
...
...
@@ -96,6 +96,11 @@ static int Open( vlc_object_t *p_this )
p_intf
->
p_sys
->
p_theme
=
NULL
;
// Initialize singletons
if
(
OSFactory
::
instance
(
p_intf
)
==
NULL
)
{
msg_Err
(
p_intf
,
"Cannot initialize OSFactory"
);
return
VLC_EGENERIC
;
}
if
(
AsyncQueue
::
instance
(
p_intf
)
==
NULL
)
{
msg_Err
(
p_intf
,
"Cannot initialize AsyncQueue"
);
...
...
@@ -106,11 +111,6 @@ static int Open( vlc_object_t *p_this )
msg_Err
(
p_intf
,
"Cannot instanciate Interpreter"
);
return
VLC_EGENERIC
;
}
if
(
OSFactory
::
instance
(
p_intf
)
==
NULL
)
{
msg_Err
(
p_intf
,
"Cannot initialize OSFactory"
);
return
VLC_EGENERIC
;
}
if
(
VarManager
::
instance
(
p_intf
)
==
NULL
)
{
msg_Err
(
p_intf
,
"Cannot instanciate VarManager"
);
...
...
modules/gui/skins2/x11/x11_display.cpp
View file @
de22c758
...
...
@@ -2,7 +2,7 @@
* x11_display.cpp
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* $Id: x11_display.cpp,v 1.
1 2004/01/03 23:31:34
asmax Exp $
* $Id: x11_display.cpp,v 1.
2 2004/01/25 13:59:33
asmax Exp $
*
* Authors: Cyril Deguet <asmax@via.ecp.fr>
* Olivier Teulire <ipkiss@via.ecp.fr>
...
...
@@ -51,12 +51,6 @@ X11Display::X11Display( intf_thread_t *pIntf ): SkinObject( pIntf ),
int
depth
=
DefaultDepth
(
m_pDisplay
,
screen
);
int
order
=
ImageByteOrder
(
m_pDisplay
);
// Create a graphics context that doesn't generate GraphicsExpose events
XGCValues
xgcvalues
;
xgcvalues
.
graphics_exposures
=
False
;
m_gc
=
XCreateGC
(
m_pDisplay
,
DefaultRootWindow
(
m_pDisplay
),
GCGraphicsExposures
,
&
xgcvalues
);
// Template for looking up the XVisualInfo
XVisualInfo
xVInfoTemplate
;
xVInfoTemplate
.
screen
=
screen
;
...
...
@@ -127,6 +121,15 @@ X11Display::X11Display( intf_thread_t *pIntf ): SkinObject( pIntf ),
{
XFree
(
pVInfo
);
}
// Create a graphics context that doesn't generate GraphicsExpose events
if
(
m_pDisplay
)
{
XGCValues
xgcvalues
;
xgcvalues
.
graphics_exposures
=
False
;
m_gc
=
XCreateGC
(
m_pDisplay
,
DefaultRootWindow
(
m_pDisplay
),
GCGraphicsExposures
,
&
xgcvalues
);
}
}
...
...
modules/gui/skins2/x11/x11_factory.cpp
View file @
de22c758
...
...
@@ -2,7 +2,7 @@
* x11_factory.cpp
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* $Id: x11_factory.cpp,v 1.
1 2004/01/03 23:31:34
asmax Exp $
* $Id: x11_factory.cpp,v 1.
2 2004/01/25 13:59:33
asmax Exp $
*
* Authors: Cyril Deguet <asmax@via.ecp.fr>
* Olivier Teulire <ipkiss@via.ecp.fr>
...
...
@@ -38,7 +38,8 @@
#include "x11_tooltip.hpp"
X11Factory
::
X11Factory
(
intf_thread_t
*
pIntf
)
:
OSFactory
(
pIntf
)
X11Factory
::
X11Factory
(
intf_thread_t
*
pIntf
)
:
OSFactory
(
pIntf
),
m_pDisplay
(
NULL
),
m_pTimerLoop
(
NULL
)
{
// see init()
}
...
...
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