Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
4fbef00c
Commit
4fbef00c
authored
Aug 15, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Initialize submodule explicitly
parent
224742db
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
5 deletions
+19
-5
src/modules/entry.c
src/modules/entry.c
+19
-5
No files found.
src/modules/entry.c
View file @
4fbef00c
...
...
@@ -89,26 +89,40 @@ module_t *vlc_submodule_create (module_t *module)
{
assert
(
module
!=
NULL
);
module_t
*
submodule
=
calloc
(
1
,
sizeof
(
*
submodule
)
);
if
(
!
submodule
)
module_t
*
submodule
=
malloc
(
sizeof
(
*
submodule
)
);
if
(
unlikely
(
submodule
==
NULL
)
)
return
NULL
;
/* TODO: replace module/submodules with plugin/modules */
vlc_gc_init
(
submodule
,
vlc_submodule_destruct
);
submodule
->
next
=
module
->
submodule
;
submodule
->
parent
=
module
;
module
->
submodule
=
submodule
;
module
->
submodule_count
++
;
submodule
->
parent
=
module
;
submodule
->
submodule
=
NULL
;
submodule
->
submodule_count
=
0
;
/* Muahahaha! Heritage! Polymorphism! Ugliness!! */
submodule
->
pp_shortcuts
=
malloc
(
sizeof
(
char
**
)
);
submodule
->
pp_shortcuts
=
xmalloc
(
sizeof
(
char
**
));
submodule
->
pp_shortcuts
[
0
]
=
module
->
pp_shortcuts
[
0
];
/* object name */
submodule
->
i_shortcuts
=
1
;
submodule
->
psz_shortname
=
module
->
psz_shortname
;
submodule
->
psz_longname
=
module
->
psz_longname
;
submodule
->
psz_help
=
NULL
;
submodule
->
psz_capability
=
module
->
psz_capability
;
submodule
->
i_score
=
module
->
i_score
;
submodule
->
b_builtin
=
false
;
submodule
->
b_loaded
=
false
;
submodule
->
b_unloadable
=
false
;
submodule
->
pf_activate
=
NULL
;
submodule
->
pf_deactivate
=
NULL
;
submodule
->
p_config
=
NULL
;
submodule
->
confsize
=
0
;
submodule
->
i_config_items
=
0
;
submodule
->
i_bool_items
=
0
;
/*submodule->handle = unused*/
submodule
->
psz_filename
=
NULL
;
submodule
->
domain
=
module
->
domain
;
return
submodule
;
}
...
...
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