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
67f3a523
Commit
67f3a523
authored
Feb 07, 2008
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
src/darwin_specific.c: Get a better executable path name.
parent
ce1fa300
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
src/misc/darwin_specific.c
src/misc/darwin_specific.c
+10
-0
No files found.
src/misc/darwin_specific.c
View file @
67f3a523
...
...
@@ -36,6 +36,9 @@
#ifdef HAVE_LOCALE_H
# include <locale.h>
#endif
#ifdef HAVE_MACH_O_DYLD_H
# include <mach-o/dyld.h>
#endif
/* CFLocaleCopyAvailableLocaleIdentifiers is present only on post-10.4 */
extern
CFArrayRef
CFLocaleCopyAvailableLocaleIdentifiers
(
void
)
__attribute__
((
weak_import
));
...
...
@@ -101,6 +104,13 @@ void system_Init( libvlc_int_t *p_this, int *pi_argc, char *ppsz_argv[] )
}
}
if
(
!
p_char
)
{
char
path
[
MAXPATHLEN
+
1
];
uint32_t
path_len
=
MAXPATHLEN
;
if
(
!
_NSGetExecutablePath
(
path
,
&
path_len
)
)
p_char
=
strdup
(
path
);
}
if
(
!
p_char
)
{
/* We are not linked to the VLC.framework, return the executable path */
...
...
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