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
de3efb74
Commit
de3efb74
authored
Apr 06, 2007
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adds sanity check to module_Exists()
parent
46cd2cb9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
src/misc/modules.c
src/misc/modules.c
+4
-3
No files found.
src/misc/modules.c
View file @
de3efb74
...
...
@@ -767,12 +767,13 @@ vlc_bool_t __module_Exists( vlc_object_t *p_this, const char * psz_name )
{
vlc_list_t
*
p_list
;
int
i
;
char
*
psz_module_name
;
p_list
=
vlc_list_find
(
p_this
,
VLC_OBJECT_MODULE
,
FIND_ANYWHERE
);
for
(
i
=
0
;
i
<
p_list
->
i_count
;
i
++
)
{
if
(
!
strcmp
(
((
module_t
*
)
p_list
->
p_values
[
i
].
p_object
)
->
psz_shortname
,
psz_name
)
)
psz_module_name
=
((
module_t
*
)
p_list
->
p_values
[
i
].
p_object
)
->
psz_shortname
;
if
(
psz_module_name
&&
!
strcmp
(
psz_module_name
,
psz_name
)
)
{
/* We can release the list, and return yes */
vlc_list_release
(
p_list
);
return
VLC_TRUE
;
...
...
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