Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
cda33f62
Commit
cda33f62
authored
Sep 05, 2007
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
misc/darwin_specific.c: Correctly detect the Mac OS X framework.
parent
5ebdd3e1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
1 deletion
+17
-1
src/misc/darwin_specific.c
src/misc/darwin_specific.c
+17
-1
No files found.
src/misc/darwin_specific.c
View file @
cda33f62
...
...
@@ -67,9 +67,25 @@ void system_Init( libvlc_int_t *p_this, int *pi_argc, char *ppsz_argv[] )
{
char
i_dummy
;
char
*
p_char
,
*
p_oldchar
=
&
i_dummy
;
int
i
;
/* Get the full program path and name */
p_char
=
vlc_global
()
->
psz_vlcpath
=
strdup
(
ppsz_argv
[
0
]
);
/* First try to see if we are linked to the framework */
for
(
i
=
0
;
i
<
_dyld_image_count
();
i
++
)
{
char
*
psz_img_name
=
_dyld_get_image_name
(
i
);
if
(
!
strstr
(
psz_img_name
,
"VLC.framework/Version/Current/Framework/VLC"
)
)
p_char
=
strdup
(
psz_img_name
);
}
if
(
!
p_char
)
{
/* We are not linked to the VLC.framework, return the executable path */
p_char
=
strdup
(
ppsz_argv
[
0
]
);
}
vlc_global
()
->
psz_vlcpath
=
p_char
;
/* Remove trailing program name */
for
(
;
*
p_char
;
)
...
...
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