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
19b91d1b
Commit
19b91d1b
authored
Oct 12, 2012
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove old object aliasing code
parent
7d5937b3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
10 deletions
+3
-10
src/modules/modules.c
src/modules/modules.c
+3
-10
No files found.
src/modules/modules.c
View file @
19b91d1b
...
...
@@ -200,7 +200,7 @@ module_t *vlc_module_load(vlc_object_t *p_this, const char *psz_capability,
vlc_activate_t
probe
,
...)
{
int
i_shortcuts
=
0
;
char
*
psz_shortcuts
=
NULL
,
*
psz_var
=
NULL
,
*
psz_alias
=
NULL
;
char
*
psz_shortcuts
=
NULL
,
*
psz_var
=
NULL
;
bool
b_force_backup
=
p_this
->
b_force
;
/* Deal with variables */
...
...
@@ -271,15 +271,9 @@ module_t *vlc_module_load(vlc_object_t *p_this, const char *psz_capability,
{
for
(
unsigned
i
=
0
;
i
<
p_module
->
i_shortcuts
;
i
++
)
{
char
*
c
;
if
(
(
c
=
strchr
(
name
,
'@'
)
)
?
!
strncasecmp
(
name
,
p_module
->
pp_shortcuts
[
i
],
c
-
name
)
:
!
strcasecmp
(
name
,
p_module
->
pp_shortcuts
[
i
]
)
)
if
(
!
strcasecmp
(
name
,
p_module
->
pp_shortcuts
[
i
]
)
)
{
/* Found it */
if
(
c
&&
c
[
1
]
)
psz_alias
=
c
+
1
;
i_shortcut_bonus
=
i_short
*
10000
;
goto
found_shortcut
;
}
...
...
@@ -374,8 +368,7 @@ found_shortcut:
{
msg_Dbg
(
p_this
,
"using %s module
\"
%s
\"
"
,
psz_capability
,
module_get_object
(
p_module
)
);
vlc_object_set_name
(
p_this
,
psz_alias
?
psz_alias
:
module_get_object
(
p_module
)
);
vlc_object_set_name
(
p_this
,
module_get_object
(
p_module
)
);
}
else
msg_Dbg
(
p_this
,
"no %s module matching
\"
%s
\"
could be loaded"
,
...
...
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