Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
772985d3
Commit
772985d3
authored
Apr 28, 2003
by
Olivier Teulière
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* ./modules/gui/skins/src/banks.cpp: fixed a segfault triggered by
missing tags in the XML.
parent
2396f46b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
modules/gui/skins/src/banks.cpp
modules/gui/skins/src/banks.cpp
+6
-3
No files found.
modules/gui/skins/src/banks.cpp
View file @
772985d3
/*****************************************************************************
/*****************************************************************************
* banks.cpp: Bitmap bank, Event
,
bank, Font bank and OffSet bank
* banks.cpp: Bitmap bank, Event bank, Font bank and OffSet bank
*****************************************************************************
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* Copyright (C) 2003 VideoLAN
* $Id: banks.cpp,v 1.
5 2003/04/21 22:12:37 asmax
Exp $
* $Id: banks.cpp,v 1.
6 2003/04/28 20:46:41 ipkiss
Exp $
*
*
* Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr>
...
@@ -78,6 +78,7 @@ Bitmap * BitmapBank::Get( string Id )
...
@@ -78,6 +78,7 @@ Bitmap * BitmapBank::Get( string Id )
{
{
msg_Warn
(
p_intf
,
"Unknown bitmap name '%s', using default one"
,
msg_Warn
(
p_intf
,
"Unknown bitmap name '%s', using default one"
,
Id
.
c_str
()
);
Id
.
c_str
()
);
Bank
.
erase
(
Id
);
return
Bank
[
DEFAULT_BITMAP_NAME
];
return
Bank
[
DEFAULT_BITMAP_NAME
];
}
}
...
@@ -127,6 +128,7 @@ SkinFont * FontBank::Get( string Id )
...
@@ -127,6 +128,7 @@ SkinFont * FontBank::Get( string Id )
{
{
msg_Warn
(
p_intf
,
"Unknown font name '%s', using default one"
,
msg_Warn
(
p_intf
,
"Unknown font name '%s', using default one"
,
Id
.
c_str
()
);
Id
.
c_str
()
);
Bank
.
erase
(
Id
);
return
Bank
[
DEFAULT_FONT_NAME
];
return
Bank
[
DEFAULT_FONT_NAME
];
}
}
...
@@ -218,11 +220,12 @@ void EventBank::TestShortcut( int key, int mod )
...
@@ -218,11 +220,12 @@ void EventBank::TestShortcut( int key, int mod )
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
Event
*
EventBank
::
Get
(
string
Id
)
Event
*
EventBank
::
Get
(
string
Id
)
{
{
// If the specified
fo
nt doesn't exist, use the default one
// If the specified
eve
nt doesn't exist, use the default one
if
(
Bank
[
Id
]
==
NULL
)
if
(
Bank
[
Id
]
==
NULL
)
{
{
msg_Warn
(
p_intf
,
"Unknown event name '%s', using default one"
,
msg_Warn
(
p_intf
,
"Unknown event name '%s', using default one"
,
Id
.
c_str
()
);
Id
.
c_str
()
);
Bank
.
erase
(
Id
);
return
Bank
[
DEFAULT_EVENT_NAME
];
return
Bank
[
DEFAULT_EVENT_NAME
];
}
}
...
...
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