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
2cf6ffb2
Commit
2cf6ffb2
authored
Jun 14, 2009
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
darwin_specific: cleanup
parent
be262960
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
src/misc/darwin_specific.c
src/misc/darwin_specific.c
+3
-4
No files found.
src/misc/darwin_specific.c
View file @
2cf6ffb2
...
@@ -50,14 +50,13 @@
...
@@ -50,14 +50,13 @@
void
system_Init
(
libvlc_int_t
*
p_this
,
int
*
pi_argc
,
const
char
*
ppsz_argv
[]
)
void
system_Init
(
libvlc_int_t
*
p_this
,
int
*
pi_argc
,
const
char
*
ppsz_argv
[]
)
{
{
VLC_UNUSED
(
p_this
);
VLC_UNUSED
(
p_this
);
char
i_dummy
;
char
i_dummy
=
'\0'
;
char
*
p_char
=
NULL
;
char
*
p_char
=
NULL
;
char
*
p_oldchar
=
&
i_dummy
;
char
*
p_oldchar
=
&
i_dummy
;
unsigned
int
i
;
unsigned
int
i
;
(
void
)
pi_argc
;
(
void
)
pi_argc
;
/* Get the full program path and name */
/* Get the full program path and name */
/* First try to see if we are linked to the framework */
/* First try to see if we are linked to the framework */
for
(
i
=
0
;
i
<
_dyld_image_count
();
i
++
)
for
(
i
=
0
;
i
<
_dyld_image_count
();
i
++
)
{
{
...
@@ -96,6 +95,7 @@ void system_Init( libvlc_int_t *p_this, int *pi_argc, const char *ppsz_argv[] )
...
@@ -96,6 +95,7 @@ void system_Init( libvlc_int_t *p_this, int *pi_argc, const char *ppsz_argv[] )
p_char
=
strdup
(
ppsz_argv
[
0
]
);
p_char
=
strdup
(
ppsz_argv
[
0
]
);
}
}
free
(
psz_vlcpath
);
psz_vlcpath
=
p_char
;
psz_vlcpath
=
p_char
;
/* Remove trailing program name */
/* Remove trailing program name */
...
@@ -107,12 +107,11 @@ void system_Init( libvlc_int_t *p_this, int *pi_argc, const char *ppsz_argv[] )
...
@@ -107,12 +107,11 @@ void system_Init( libvlc_int_t *p_this, int *pi_argc, const char *ppsz_argv[] )
*
p_char
=
'\0'
;
*
p_char
=
'\0'
;
p_oldchar
=
p_char
;
p_oldchar
=
p_char
;
}
}
p_char
++
;
p_char
++
;
}
}
/* Check if $LANG is set. */
/* Check if $LANG is set. */
if
(
(
p_char
=
getenv
(
"LANG"
))
==
NULL
)
if
(
NULL
==
getenv
(
"LANG"
)
)
{
{
/*
/*
Retrieve the preferred language as chosen in System Preferences.app
Retrieve the preferred language as chosen in System Preferences.app
...
...
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