Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
2a9418cb
Commit
2a9418cb
authored
May 31, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not use VLC_AddTarget internally
parent
a20c35e9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
src/libvlc-common.c
src/libvlc-common.c
+9
-6
No files found.
src/libvlc-common.c
View file @
2a9418cb
...
...
@@ -920,8 +920,10 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc,
var_Get
(
p_libvlc
,
"open"
,
&
val
);
if
(
val
.
psz_string
!=
NULL
&&
*
val
.
psz_string
)
{
VLC_AddTarget
(
p_libvlc
->
i_object_id
,
val
.
psz_string
,
NULL
,
0
,
PLAYLIST_INSERT
,
0
);
playlist_t
*
p_playlist
=
pl_Yield
(
p_libvlc
);
playlist_AddExt
(
p_playlist
,
val
.
psz_string
,
NULL
,
PLAYLIST_INSERT
,
0
,
-
1
,
NULL
,
0
,
true
,
false
);
pl_Release
(
p_libvlc
);
}
free
(
val
.
psz_string
);
...
...
@@ -1257,10 +1259,11 @@ static int GetFilenames( libvlc_int_t *p_vlc, int i_argc, const char *ppsz_argv[
/* TODO: write an internal function of this one, to avoid
* unnecessary lookups. */
VLC_AddTarget
(
p_vlc
->
i_object_id
,
ppsz_argv
[
i_opt
],
(
i_options
?
&
ppsz_argv
[
i_opt
+
1
]
:
NULL
),
i_options
,
PLAYLIST_INSERT
,
0
);
playlist_t
*
p_playlist
=
pl_Yield
(
p_vlc
);
playlist_AddExt
(
p_playlist
,
ppsz_argv
[
i_opt
],
NULL
,
PLAYLIST_INSERT
,
0
,
-
1
,
(
i_options
?
&
ppsz_argv
[
i_opt
+
1
]
:
NULL
),
i_options
,
true
,
false
);
pl_Release
(
p_vlc
);
}
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