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
38386dfd
Commit
38386dfd
authored
Mar 28, 2008
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
module: Fix ':' usage and more largely previous commit.
parent
6962020b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
src/modules/modules.c
src/modules/modules.c
+9
-4
No files found.
src/modules/modules.c
View file @
38386dfd
...
...
@@ -936,6 +936,7 @@ static char * copy_next_paths_token( char * paths, char ** remaining_paths )
else
path
[
i
]
=
paths
[
i
];
}
path
[
i
]
=
0
;
/* Return the remaining paths */
if
(
remaining_paths
)
{
...
...
@@ -954,15 +955,19 @@ static void AllocateAllPlugins( vlc_object_t *p_this )
char
*
paths
,
*
path
,
*
paths_iter
;
#if defined( WIN32 ) || defined( UNDER_CE )
const
char
*
extra_path
=
""
;
const
char
*
extra_path
=
NULL
;
#else
const
char
*
extra_path
=
":"
PLUGIN_PATH
;
const
char
*
extra_path
=
PLUGIN_PATH
;
#endif
/* If the user provided a plugin path, we add it to the list */
char
*
userpaths
=
config_GetPsz
(
p_this
,
"plugin-path"
);
if
(
asprintf
(
&
paths
,
"modules%s:plugins:%s"
,
extra_path
,
userpaths
)
<
0
)
if
(
asprintf
(
&
paths
,
"modules%s%s"
PATH_SEP
"plugins%s%s"
,
extra_path
?
PATH_SEP
:
""
,
extra_path
?
extra_path
:
""
,
userpaths
?
PATH_SEP
:
""
,
userpaths
?
userpaths
:
""
)
<
0
)
{
msg_Err
(
p_this
,
"Not enough memory"
);
free
(
userpaths
);
...
...
@@ -975,7 +980,7 @@ static void AllocateAllPlugins( vlc_object_t *p_this )
for
(
paths_iter
=
paths
;
paths_iter
;
)
{
char
*
psz_fullpath
;
path
=
copy_next_paths_token
(
paths_iter
,
&
paths_iter
);
if
(
!
path
)
{
...
...
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