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
0ea547ed
Commit
0ea547ed
authored
Jul 05, 2008
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qt4: use module_GetMainModule.
parent
1468c26b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
15 deletions
+6
-15
modules/gui/qt4/components/complete_preferences.cpp
modules/gui/qt4/components/complete_preferences.cpp
+6
-15
No files found.
modules/gui/qt4/components/complete_preferences.cpp
View file @
0ea547ed
...
...
@@ -75,20 +75,7 @@ PrefsTree::PrefsTree( intf_thread_t *_p_intf, QWidget *_parent ) :
#undef BI
/* Build the tree for the main module */
const
module_t
*
p_module
=
NULL
;
vlc_list_t
*
p_list
=
vlc_list_find
(
p_intf
,
VLC_OBJECT_MODULE
,
FIND_ANYWHERE
);
if
(
!
p_list
)
return
;
/* Find the main module */
for
(
unsigned
i
=
0
;
p_module
==
NULL
;
i
++
)
{
assert
(
i
<
(
unsigned
)
p_list
->
i_count
);
const
module_t
*
p_main
=
(
module_t
*
)
p_list
->
p_values
[
i
].
p_object
;
if
(
strcmp
(
module_GetObjName
(
p_main
),
"main"
)
==
0
)
p_module
=
p_main
;
}
const
module_t
*
p_module
=
module_GetMainModule
(
p_intf
);
/* Initialisation and get the confsize */
PrefsItemData
*
data
=
NULL
;
...
...
@@ -206,7 +193,11 @@ PrefsTree::PrefsTree( intf_thread_t *_p_intf, QWidget *_parent ) :
}
}
module_PutConfig
(
p_config
);
vlc_object_release
(
(
vlc_object_t
*
)
p_module
);
vlc_list_t
*
p_list
=
vlc_list_find
(
p_this
,
VLC_OBJECT_MODULE
,
FIND_ANYWHERE
);
/* Build the tree of plugins */
for
(
int
i_index
=
0
;
i_index
<
p_list
->
i_count
;
i_index
++
)
{
...
...
@@ -214,7 +205,7 @@ PrefsTree::PrefsTree( intf_thread_t *_p_intf, QWidget *_parent ) :
p_module
=
(
module_t
*
)
p_list
->
p_values
[
i_index
].
p_object
;
// Main module excluded
if
(
!
strcmp
(
module_GetObjName
(
p_module
),
"main"
)
)
continue
;
if
(
module_IsMainModule
(
p_module
)
)
continue
;
unsigned
i_subcategory
=
0
,
i_category
=
0
,
confsize
;
bool
b_options
=
false
;
...
...
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