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
90d26397
Commit
90d26397
authored
Sep 26, 2006
by
Olivier Aubert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mediacontrol_core.c: prepend the argv[0] here, since libvlc_new no
longer does.
parent
8ce89e1a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletion
+14
-1
src/control/mediacontrol_core.c
src/control/mediacontrol_core.c
+14
-1
No files found.
src/control/mediacontrol_core.c
View file @
90d26397
...
...
@@ -59,6 +59,8 @@ mediacontrol_Instance* mediacontrol_new( int argc, char** argv, mediacontrol_Exc
{
mediacontrol_Instance
*
retval
;
libvlc_exception_t
ex
;
char
**
ppsz_argv
=
NULL
;
int
i_index
;
libvlc_exception_init
(
&
ex
);
exception
=
mediacontrol_exception_init
(
exception
);
...
...
@@ -67,7 +69,18 @@ mediacontrol_Instance* mediacontrol_new( int argc, char** argv, mediacontrol_Exc
if
(
!
retval
)
RAISE_NULL
(
mediacontrol_InternalException
,
"Out of memory"
);
retval
->
p_instance
=
libvlc_new
(
argc
,
argv
,
&
ex
);
/* Prepend a dummy argv[0] so that users of the API do not have to
do it themselves, and can simply provide the args list. */
ppsz_argv
=
malloc
(
(
argc
+
2
)
*
sizeof
(
char
*
)
)
;
if
(
!
ppsz_argv
)
RAISE_NULL
(
mediacontrol_InternalException
,
"Out of memory"
);
ppsz_argv
[
0
]
=
strdup
(
"vlc"
);
for
(
i_index
=
0
;
i_index
<
argc
;
i_index
++
)
ppsz_argv
[
i_index
+
1
]
=
argv
[
i_index
];
ppsz_argv
[
argc
+
1
]
=
NULL
;
retval
->
p_instance
=
libvlc_new
(
argc
+
1
,
ppsz_argv
,
&
ex
);
retval
->
p_playlist
=
retval
->
p_instance
->
p_libvlc_int
->
p_playlist
;
HANDLE_LIBVLC_EXCEPTION_NULL
(
&
ex
);
return
retval
;
...
...
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