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
a1e8379f
Commit
a1e8379f
authored
Apr 14, 2007
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tiny code factorization
parent
7a5fd4be
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
16 deletions
+3
-16
src/modules/entry.c
src/modules/entry.c
+0
-10
src/modules/modules.c
src/modules/modules.c
+3
-6
No files found.
src/modules/entry.c
View file @
a1e8379f
...
...
@@ -32,20 +32,12 @@ module_t *vlc_module_create (vlc_object_t *obj)
#ifndef HAVE_SHARED_LIBVLC
module
->
p_symbols
=
&
obj
->
p_libvlc_global
->
p_module_bank
->
symbols
;
#endif
module
->
b_loaded
=
module
->
b_submodule
=
VLC_FALSE
;
module
->
b_reentrant
=
module
->
b_unloadable
=
VLC_TRUE
;
module
->
psz_object_name
=
module
->
psz_longname
=
default_name
;
module
->
psz_help
=
module
->
psz_shortname
=
NULL
;
module
->
pp_shortcuts
[
0
]
=
default_name
;
for
(
unsigned
i
=
1
;
i
<
MODULE_SHORTCUT_MAX
;
i
++
)
module
->
pp_shortcuts
[
i
]
=
NULL
;
module
->
i_cpu
=
0
;
module
->
psz_program
=
NULL
;
module
->
psz_capability
=
""
;
module
->
i_score
=
1
;
module
->
pf_activate
=
NULL
;
module
->
pf_deactivate
=
NULL
;
return
module
;
}
...
...
@@ -74,8 +66,6 @@ module_t *vlc_submodule_create (module_t *module)
submodule
->
psz_capability
=
module
->
psz_capability
;
submodule
->
i_score
=
module
->
i_score
;
submodule
->
i_cpu
=
module
->
i_cpu
;
submodule
->
pf_activate
=
NULL
;
submodule
->
pf_deactivate
=
NULL
;
return
submodule
;
}
...
...
src/modules/modules.c
View file @
a1e8379f
...
...
@@ -1231,7 +1231,7 @@ static int AllocateBuiltinModule( vlc_object_t * p_this,
/* Now that we have successfully loaded the module, we can
* allocate a structure for it */
p_module
=
vlc_
object_create
(
p_this
,
VLC_OBJECT_MODULE
);
p_module
=
vlc_
module_create
(
p_this
);
if
(
p_module
==
NULL
)
{
msg_Err
(
p_this
,
"out of memory"
);
...
...
@@ -1785,7 +1785,7 @@ static void CacheLoad( vlc_object_t *p_this )
if
(
pp_cache
[
i
]
->
b_junk
)
continue
;
pp_cache
[
i
]
->
p_module
=
vlc_
object_create
(
p_this
,
VLC_OBJECT_MODULE
);
pp_cache
[
i
]
->
p_module
=
vlc_
module_create
(
p_this
);
/* Load additional infos */
LOAD_STRING
(
pp_cache
[
i
]
->
p_module
->
psz_object_name
);
...
...
@@ -1814,10 +1814,7 @@ static void CacheLoad( vlc_object_t *p_this )
while
(
i_submodules
--
)
{
module_t
*
p_module
=
vlc_object_create
(
p_this
,
VLC_OBJECT_MODULE
);
vlc_object_attach
(
p_module
,
pp_cache
[
i
]
->
p_module
);
p_module
->
b_submodule
=
VLC_TRUE
;
module_t
*
p_module
=
vlc_submodule_create
(
pp_cache
[
i
]
->
p_module
);
LOAD_STRING
(
p_module
->
psz_object_name
);
LOAD_STRING
(
p_module
->
psz_shortname
);
LOAD_STRING
(
p_module
->
psz_longname
);
...
...
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