Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
bbb25382
Commit
bbb25382
authored
Jan 31, 2010
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Variables fixes
parent
5f39f383
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
src/libvlc.c
src/libvlc.c
+7
-5
No files found.
src/libvlc.c
View file @
bbb25382
...
...
@@ -807,14 +807,16 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc,
playlist_Activate
(
p_playlist
);
/* Add service discovery modules */
psz_modules
=
var_
CreateGetNonEmptyString
(
p_playlist
,
"services-discovery"
);
psz_modules
=
var_
InheritString
(
p_libvlc
,
"services-discovery"
);
if
(
psz_modules
)
{
char
*
p
=
psz_modules
,
*
m
;
playlist_t
*
p_playlist
=
pl_Hold
(
p_libvlc
);
while
(
(
m
=
strsep
(
&
p
,
" :,"
)
)
!=
NULL
)
playlist_ServicesDiscoveryAdd
(
p_playlist
,
m
);
}
free
(
psz_modules
);
pl_Release
(
p_playlist
);
}
#ifdef ENABLE_VLM
/* Initialize VLM if vlm-conf is specified */
...
...
@@ -924,7 +926,7 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc,
#ifdef WIN32
if
(
var_InheritBool
(
p_libvlc
,
"prefer-system-codecs"
)
)
{
char
*
psz_codecs
=
var_CreateGetNonEmptyString
(
p_
playlist
,
"codec"
);
char
*
psz_codecs
=
var_CreateGetNonEmptyString
(
p_
libvlc
,
"codec"
);
if
(
psz_codecs
)
{
char
*
psz_morecodecs
;
...
...
@@ -965,15 +967,15 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc,
/*
* Get --open argument
*/
psz_val
=
var_
CreateGetNonEmpty
String
(
p_libvlc
,
"open"
);
psz_val
=
var_
Inherit
String
(
p_libvlc
,
"open"
);
if
(
psz_val
!=
NULL
)
{
playlist_t
*
p_playlist
=
pl_Hold
(
p_libvlc
);
playlist_AddExt
(
p_playlist
,
psz_val
,
NULL
,
PLAYLIST_INSERT
,
0
,
-
1
,
0
,
NULL
,
0
,
true
,
pl_Unlocked
);
pl_Release
(
p_libvlc
);
}
free
(
psz_val
);
}
return
VLC_SUCCESS
;
}
...
...
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