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
18dc9946
Commit
18dc9946
authored
May 09, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vlc_module_create(): remove useless parameter
parent
2040b325
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
7 deletions
+5
-7
src/modules/cache.c
src/modules/cache.c
+1
-1
src/modules/entry.c
src/modules/entry.c
+1
-3
src/modules/modules.c
src/modules/modules.c
+2
-2
src/modules/modules.h
src/modules/modules.h
+1
-1
No files found.
src/modules/cache.c
View file @
18dc9946
...
...
@@ -239,7 +239,7 @@ void CacheLoad( vlc_object_t *p_this, module_bank_t *p_bank, const char *dir )
LOAD_IMMEDIATE
(
pp_cache
[
i
]
->
i_time
);
LOAD_IMMEDIATE
(
pp_cache
[
i
]
->
i_size
);
pp_cache
[
i
]
->
p_module
=
vlc_module_create
(
p_this
);
pp_cache
[
i
]
->
p_module
=
vlc_module_create
();
/* Load additional infos */
free
(
pp_cache
[
i
]
->
p_module
->
psz_object_name
);
...
...
src/modules/entry.c
View file @
18dc9946
...
...
@@ -45,7 +45,7 @@ static void vlc_module_destruct (gc_object_t *obj)
static
const
char
default_name
[]
=
"unnamed"
;
module_t
*
vlc_module_create
(
v
lc_object_t
*
obj
)
module_t
*
vlc_module_create
(
v
oid
)
{
module_t
*
module
=
malloc
(
sizeof
(
*
module
));
if
(
module
==
NULL
)
...
...
@@ -77,8 +77,6 @@ module_t *vlc_module_create (vlc_object_t *obj)
module
->
domain
=
NULL
;
module
->
b_builtin
=
false
;
module
->
b_loaded
=
false
;
(
void
)
obj
;
return
module
;
}
...
...
src/modules/modules.c
View file @
18dc9946
...
...
@@ -1030,7 +1030,7 @@ static module_t * AllocatePlugin( vlc_object_t * p_this, const char *psz_file )
/* Now that we have successfully loaded the module, we can
* allocate a structure for it */
p_module
=
vlc_module_create
(
p_this
);
p_module
=
vlc_module_create
();
if
(
p_module
==
NULL
)
{
module_Unload
(
handle
);
...
...
@@ -1123,7 +1123,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_module_create
(
p_this
);
p_module
=
vlc_module_create
();
if
(
p_module
==
NULL
)
return
-
1
;
...
...
src/modules/modules.h
View file @
18dc9946
...
...
@@ -133,7 +133,7 @@ struct module_t
char
*
domain
;
/* gettext domain */
};
module_t
*
vlc_module_create
(
v
lc_object_t
*
);
module_t
*
vlc_module_create
(
v
oid
);
module_t
*
vlc_submodule_create
(
module_t
*
module
);
void
module_InitBank
(
vlc_object_t
*
);
...
...
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