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
a26145a6
Commit
a26145a6
authored
Feb 20, 2007
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed segfault in AutoBuiltPanel::AutoBuiltPanel.
parent
bd394308
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
modules/gui/wxwidgets/dialogs/open.cpp
modules/gui/wxwidgets/dialogs/open.cpp
+5
-7
No files found.
modules/gui/wxwidgets/dialogs/open.cpp
View file @
a26145a6
...
...
@@ -224,12 +224,12 @@ AutoBuiltPanel::AutoBuiltPanel( wxWindow *parent, OpenDialog *dialog,
p_intf
(
_p_intf
),
p_open_dialog
(
dialog
),
p_advanced_dialog
(
NULL
)
{
wxBoxSizer
*
sizer
=
new
wxBoxSizer
(
wxVERTICAL
);
module_config_t
*
p_item
=
p_module
->
p_config
,
*
p_end
=
p_item
+
p_module
->
confsize
;
bool
b_advanced
=
false
;
int
n
;
if
(
p_item
)
do
for
(
n
=
0
;
n
<
p_module
->
confsize
;
n
++
)
{
module_config_t
*
p_item
=
&
p_module
->
p_config
[
n
];
if
(
!
(
p_item
->
i_type
&
CONFIG_HINT
)
&&
p_item
->
b_advanced
)
b_advanced
=
true
;
...
...
@@ -248,7 +248,6 @@ AutoBuiltPanel::AutoBuiltPanel( wxWindow *parent, OpenDialog *dialog,
sizer
->
Add
(
control
,
0
,
wxEXPAND
|
wxALL
,
2
);
}
while
(
p_item
<
p_end
&&
p_item
++
);
if
(
b_advanced
)
{
...
...
@@ -284,9 +283,9 @@ AutoBuiltPanel::AutoBuiltPanel( wxWindow *parent, OpenDialog *dialog,
sizer
->
Add
(
mrl_sizer_sizer
,
0
,
wxEXPAND
|
wxALL
,
2
);
/* Add advanced options to panel */
module_config_t
*
p_item
=
p_module
->
p_config
;
if
(
p_item
)
do
for
(
n
=
0
;
n
<
p_module
->
confsize
;
n
++
)
{
module_config_t
*
p_item
=
&
p_module
->
p_config
[
n
];
if
(
p_item
->
i_type
&
CONFIG_HINT
||
!
p_item
->
b_advanced
)
continue
;
...
...
@@ -304,7 +303,6 @@ AutoBuiltPanel::AutoBuiltPanel( wxWindow *parent, OpenDialog *dialog,
sizer
->
Add
(
control
,
0
,
wxEXPAND
|
wxALL
,
2
);
}
while
(
p_item
<
p_end
&&
p_item
++
);
/* Separation */
wxPanel
*
dummy_panel
=
new
wxPanel
(
p_advanced_dialog
,
-
1
);
...
...
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