[vlc-devel] commit: darwin_specific: Make sure developer version of VLC.app works. ( Pierre d'Herbemont )
git version control
git at videolan.org
Sun Jan 24 17:57:17 CET 2010
vlc | branch: master | Pierre d'Herbemont <pdherbemont at free.fr> | Sun Jan 24 17:56:39 2010 +0100| [684138de611d8830e7253b37c9acb5f3820173fc] | committer: Pierre d'Herbemont
darwin_specific: Make sure developer version of VLC.app works.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=684138de611d8830e7253b37c9acb5f3820173fc
---
src/misc/darwin_specific.c | 13 ++++++++++++-
1 files changed, 12 insertions(+), 1 deletions(-)
diff --git a/src/misc/darwin_specific.c b/src/misc/darwin_specific.c
index 1f74caf..91e1a05 100644
--- a/src/misc/darwin_specific.c
+++ b/src/misc/darwin_specific.c
@@ -1,3 +1,4 @@
+
/*****************************************************************************
* darwin_specific.m: Darwin specific features
*****************************************************************************
@@ -69,7 +70,7 @@ void system_Init( libvlc_int_t *p_this, int *pi_argc, const char *ppsz_argv[] )
p_char += 26; /* p_char += strlen(" VLCKit.framework/Versions/" ) */
while( *p_char != '\0' && *p_char != '/')
p_char++;
-
+
/* If the string ends with VLC then we've found a winner */
if ( !strcmp( p_char, "/VLCKit" ) )
{
@@ -79,6 +80,16 @@ void system_Init( libvlc_int_t *p_this, int *pi_argc, const char *ppsz_argv[] )
else
p_char = NULL;
}
+ else {
+ size_t len = strlen(psz_img_name);
+ /* Do we end by "VLC"? If so we are the legacy VLC.app that doesn't
+ * link to VLCKit. */
+ if( !strcmp( psz_img_name + len - 3, "VLC") )
+ {
+ p_char = strdup( psz_img_name );
+ break;
+ }
+ }
}
if ( !p_char )
{
More information about the vlc-devel
mailing list