Changeset 99a25fe17cdb9bdaeaa4398b5aa07cba33dcf5d0

Show
Ignore:
Timestamp:
25/02/08 20:58:26 (8 months ago)
Author:
Rémi Denis-Courmont <rem@videolan.org>
git-committer:
Rémi Denis-Courmont <rem@videolan.org> 1203969506 +0000
git-parent:

[a7954388b00c3f2c83bb25d97b75f1a3a470868b]

git-author:
Rémi Denis-Courmont <rem@videolan.org> 1203969506 +0000
Message:
  • Redo [22749]. Fix Mozilla plugin, fix OSX framework, fix the bindings.
  • Fix ActiveX.
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/control/core.c

    r2bd9ccb r99a25fe  
    111111    if( !p_new ) RAISENULL( "Out of memory" ); 
    112112 
     113    const char *my_argv[argc + 2]; 
     114 
     115    my_argv[0] = "libvlc"; /* dummy arg0, skipped by getopt() et al */ 
     116    for( int i = 0; i < argc; i++ ) 
     117         my_argv[i + 1] = argv[i]; 
     118    my_argv[argc + 1] = NULL; /* C calling conventions require a NULL */ 
     119 
    113120    /** \todo Look for interface settings. If we don't have any, add -I dummy */ 
    114121    /* Because we probably don't want a GUI by default */ 
    115122 
    116     /* WARNING: caller must pass a program path in argv[0], which can be a dummy path 
    117      *          this is used by libvlc to locate, this is leveraged by plugins */ 
    118     if( libvlc_InternalInit( p_libvlc_int, argc, argv ) ) 
     123    if( libvlc_InternalInit( p_libvlc_int, argc + 1, my_argv ) ) 
    119124        RAISENULL( "VLC initialization failed" ); 
    120125