Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
2d87367f
Commit
2d87367f
authored
Mar 04, 2004
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules.c: fixed module_Need. (but I'm not sure of what to do with
shortcuts,any and 0 scored modules).
parent
e3455523
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
14 deletions
+21
-14
src/misc/modules.c
src/misc/modules.c
+21
-14
No files found.
src/misc/modules.c
View file @
2d87367f
...
...
@@ -2,7 +2,7 @@
* modules.c : Builtin and plugin modules management functions
*****************************************************************************
* Copyright (C) 2001-2004 VideoLAN
* $Id: modules.c,v 1.14
6 2004/03/03 20:39:53 gbazin
Exp $
* $Id: modules.c,v 1.14
7 2004/03/04 23:59:16 fenrir
Exp $
*
* Authors: Sam Hocevar <sam@zoy.org>
* Ethan C. Baldridge <BaldridgeE@cadmus.com>
...
...
@@ -324,8 +324,16 @@ module_t * __module_Need( vlc_object_t *p_this, const char *psz_capability,
/* Check if the user wants to override the "strict" mode */
if
(
psz_last_shortcut
)
{
if
(
!
strcmp
(
psz_last_shortcut
,
"none"
)
)
b_strict
=
VLC_TRUE
;
else
if
(
!
strcmp
(
psz_last_shortcut
,
"any"
)
)
b_strict
=
VLC_FALSE
;
if
(
!
strcmp
(
psz_last_shortcut
,
"none"
)
)
{
b_strict
=
VLC_TRUE
;
i_shortcuts
--
;
}
else
if
(
!
strcmp
(
psz_last_shortcut
,
"any"
)
)
{
b_strict
=
VLC_FALSE
;
i_shortcuts
--
;
}
}
}
...
...
@@ -373,7 +381,7 @@ module_t * __module_Need( vlc_object_t *p_this, const char *psz_capability,
}
/* If we required a shortcut, check this plugin provides it. */
if
(
i_shortcuts
)
if
(
i_shortcuts
>
0
)
{
vlc_bool_t
b_trash
;
int
i_dummy
,
i_short
=
i_shortcuts
;
...
...
@@ -383,17 +391,8 @@ module_t * __module_Need( vlc_object_t *p_this, const char *psz_capability,
* explicitly requested) */
b_trash
=
!
p_module
->
i_score
;
while
(
i_short
)
while
(
i_short
>
0
)
{
/* If we are in "strict" mode and we couldn't
* find the module in the list of provided shortcuts,
* then kick the bastard out of here!!! */
if
(
i_short
==
1
&&
b_strict
)
{
b_trash
=
VLC_TRUE
;
break
;
}
for
(
i_dummy
=
0
;
p_module
->
pp_shortcuts
[
i_dummy
];
i_dummy
++
)
{
if
(
!
strcasecmp
(
psz_name
,
...
...
@@ -421,6 +420,14 @@ module_t * __module_Need( vlc_object_t *p_this, const char *psz_capability,
i_short
--
;
}
/* If we are in "strict" mode and we couldn't
* find the module in the list of provided shortcuts,
* then kick the bastard out of here!!! */
if
(
i_short
==
0
&&
b_strict
)
{
b_trash
=
VLC_TRUE
;
}
if
(
b_trash
)
{
continue
;
...
...
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