Changeset 2bd9ccb55bfe252628f56c54cff864db82f889ba

Show
Ignore:
Timestamp:
21/02/08 15:37:55 (9 months ago)
Author:
Damien Fouilleul <damienf@videolan.org>
git-committer:
Damien Fouilleul <damienf@videolan.org> 1203604675 +0000
git-parent:

[6fc44a2310b34b7805ab66449270059ed2ea5658]

git-author:
Damien Fouilleul <damienf@videolan.org> 1203604675 +0000
Message:

libvlc: revert [22749], useless, breaks plugins

Files:

Legend:

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

    r88fc2c2 r2bd9ccb  
    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  
    120113    /** \todo Look for interface settings. If we don't have any, add -I dummy */ 
    121114    /* Because we probably don't want a GUI by default */ 
    122115 
    123     if( libvlc_InternalInit( p_libvlc_int, argc + 1, my_argv ) ) 
     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 ) ) 
    124119        RAISENULL( "VLC initialization failed" ); 
    125120