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
b542d458
Commit
b542d458
authored
Mar 20, 2012
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vlc: fix regression with command line arguments
parent
34add548
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
bin/vlc.c
bin/vlc.c
+12
-4
No files found.
bin/vlc.c
View file @
b542d458
...
@@ -33,6 +33,7 @@
...
@@ -33,6 +33,7 @@
#include <stdio.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdlib.h>
#include <stdbool.h>
#include <stdbool.h>
#include <string.h>
#include <locale.h>
#include <locale.h>
#include <signal.h>
#include <signal.h>
#ifdef HAVE_PTHREAD_H
#ifdef HAVE_PTHREAD_H
...
@@ -40,10 +41,6 @@
...
@@ -40,10 +41,6 @@
#endif
#endif
#include <unistd.h>
#include <unistd.h>
#ifdef __APPLE__
#include <string.h>
#endif
#ifdef __OS2__
#ifdef __OS2__
# define pthread_t int
# define pthread_t int
# define pthread_self() _gettid()
# define pthread_self() _gettid()
...
@@ -178,6 +175,17 @@ int main( int i_argc, const char *ppsz_argv[] )
...
@@ -178,6 +175,17 @@ int main( int i_argc, const char *ppsz_argv[] )
#ifdef TOP_SRCDIR
#ifdef TOP_SRCDIR
argv
[
argc
++
]
=
"--data-path="
TOP_SRCDIR
"/share"
;
argv
[
argc
++
]
=
"--data-path="
TOP_SRCDIR
"/share"
;
#endif
#endif
ppsz_argv
++
;
i_argc
--
;
/* skip executable path */
#ifdef __APPLE__
/* When VLC.app is run by double clicking in Mac OS X, the 2nd arg
* is the PSN - process serial number (a unique PID-ish thingie)
* still ok for real Darwin & when run from command line
* for example -psn_0_9306113 */
if
(
i_argc
>=
1
&&
!
strncmp
(
*
ppsz_argv
,
"-psn"
,
4
))
ppsz_argv
++
,
i_argc
--
;
#endif
memcpy
(
argv
+
argc
,
ppsz_argv
,
i_argc
*
sizeof
(
*
argv
));
argc
+=
i_argc
;
argv
[
argc
]
=
NULL
;
argv
[
argc
]
=
NULL
;
vlc_enable_override
();
vlc_enable_override
();
...
...
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