Changeset d6b76f6d3e53c4ef21e503f2cd0b5b8bcdd31aed

Show
Ignore:
Timestamp:
16/05/08 13:30:48 (5 months ago)
Author:
Rafaël Carré <funman@videolan.org>
git-committer:
Rafaël Carré <funman@videolan.org> 1210937448 +0200
git-parent:

[1cd51bdfc4de72e4774f8262e72bcc730f0ef1be]

git-author:
Rafaël Carré <funman@videolan.org> 1210937448 +0200
Message:

Gives the correct arguments to libvlc_new()

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/vlc.c

    r82abb30 rd6b76f6  
    185185 
    186186    /* Initialize libvlc */ 
    187     libvlc_instance_t *vlc = libvlc_new (i_argc, ppsz_argv, &ex); 
     187    int i_argc_real = i_argc ? i_argc - 1 : 0; 
     188    const char **ppsz_argv_real = i_argc ? &ppsz_argv[1] : ppsz_argv; 
     189    libvlc_instance_t *vlc = libvlc_new (i_argc_real, ppsz_argv_real, &ex); 
     190 
    188191    if (vlc != NULL) 
    189192    {