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
64b65409
Commit
64b65409
authored
Sep 25, 2009
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use var_CreateGet when applicable.
parent
f0ef4213
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
src/libvlc.c
src/libvlc.c
+5
-6
No files found.
src/libvlc.c
View file @
64b65409
...
@@ -307,7 +307,7 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc,
...
@@ -307,7 +307,7 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc,
bool
b_exit
=
false
;
bool
b_exit
=
false
;
int
i_ret
=
VLC_EEXIT
;
int
i_ret
=
VLC_EEXIT
;
playlist_t
*
p_playlist
=
NULL
;
playlist_t
*
p_playlist
=
NULL
;
vlc_value_t
val
;
char
*
psz_
val
;
#if defined( ENABLE_NLS ) \
#if defined( ENABLE_NLS ) \
&& ( defined( HAVE_GETTEXT ) || defined( HAVE_INCLUDED_GETTEXT ) )
&& ( defined( HAVE_GETTEXT ) || defined( HAVE_INCLUDED_GETTEXT ) )
# if defined (WIN32) || defined (__APPLE__)
# if defined (WIN32) || defined (__APPLE__)
...
@@ -1011,16 +1011,15 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc,
...
@@ -1011,16 +1011,15 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc,
/*
/*
* Get --open argument
* Get --open argument
*/
*/
var_Create
(
p_libvlc
,
"open"
,
VLC_VAR_STRING
|
VLC_VAR_DOINHERIT
);
psz_val
=
var_CreateGetString
(
p_libvlc
,
"open"
);
var_Get
(
p_libvlc
,
"open"
,
&
val
);
if
(
psz_val
!=
NULL
&&
*
psz_val
)
if
(
val
.
psz_string
!=
NULL
&&
*
val
.
psz_string
)
{
{
playlist_t
*
p_playlist
=
pl_Hold
(
p_libvlc
);
playlist_t
*
p_playlist
=
pl_Hold
(
p_libvlc
);
playlist_AddExt
(
p_playlist
,
val
.
psz_string
,
NULL
,
PLAYLIST_INSERT
,
0
,
playlist_AddExt
(
p_playlist
,
psz_val
,
NULL
,
PLAYLIST_INSERT
,
0
,
-
1
,
0
,
NULL
,
0
,
true
,
pl_Unlocked
);
-
1
,
0
,
NULL
,
0
,
true
,
pl_Unlocked
);
pl_Release
(
p_libvlc
);
pl_Release
(
p_libvlc
);
}
}
free
(
val
.
psz_string
);
free
(
psz_val
);
return
VLC_SUCCESS
;
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