]> git.sesse.net Git - vlc/blobdiff - src/misc/win32_specific.c
* src/misc/win32_specific.c: compilation fix.
[vlc] / src / misc / win32_specific.c
index bcbf17a769e0d0c91d5f0116b1f4e26938be75db..36fc102c6c859433b51de886b3f5f262613e1703 100644 (file)
@@ -2,10 +2,10 @@
  * win32_specific.c: Win32 specific features
  *****************************************************************************
  * Copyright (C) 2001-2004 VideoLAN
- * $Id: win32_specific.c,v 1.33 2004/01/29 17:51:08 zorglub Exp $
+ * $Id$
  *
  * Authors: Samuel Hocevar <sam@zoy.org>
- *          Gildas Bazin <gbazin@netcourrier.com>
+ *          Gildas Bazin <gbazin@videolan.org>
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -25,6 +25,7 @@
 #include <stdlib.h>                                                /* free() */
 
 #include <vlc/vlc.h>
+#include <vlc/input.h>
 #include "vlc_playlist.h"
 
 #ifdef WIN32                       /* optind, getopt(), included in unistd.h */
@@ -297,7 +298,7 @@ LRESULT CALLBACK WMCOPYWNDPROC( HWND hwnd, UINT uMsg, WPARAM wParam,
 
         if( pwm_data->lpData )
         {
-            int i_argc, i_data, i_opt, i_options,i_id,i_pos,j;
+            int i_argc, i_data, i_opt, i_options;
             char **ppsz_argv;
             char *p_data = (char *)pwm_data->lpData;
 
@@ -321,11 +322,13 @@ LRESULT CALLBACK WMCOPYWNDPROC( HWND hwnd, UINT uMsg, WPARAM wParam,
                 {
                     i_options++;
                 }
-                i_id = playlist_Add( p_playlist, ppsz_argv[ i_opt ],
-                              ppsz_argv[ i_opt ],
-                              PLAYLIST_APPEND | (i_opt? 0 : PLAYLIST_GO),
-                              PLAYLIST_END, -1,
-                              ppsz_argv[i_opt+1], i_options );
+
+                playlist_AddExt( p_playlist, ppsz_argv[i_opt],ppsz_argv[i_opt],
+                    PLAYLIST_APPEND | (i_opt? 0 : PLAYLIST_GO),
+                    PLAYLIST_END, -1,
+                    (char const **)( i_options ? &ppsz_argv[i_opt+1] : NULL ),
+                    i_options );
+
                 i_opt += i_options;
             }