]> git.sesse.net Git - vlc/commitdiff
* modules/codec/speex.c, src/misc/win32_specific.c: compilation fixes.
authorGildas Bazin <gbazin@videolan.org>
Thu, 29 Jan 2004 19:38:17 +0000 (19:38 +0000)
committerGildas Bazin <gbazin@videolan.org>
Thu, 29 Jan 2004 19:38:17 +0000 (19:38 +0000)
modules/codec/speex.c
src/misc/win32_specific.c

index fdb0a8d5e74c374e40e72169784f3074f924e242..639c84d1308bb364f0e2b774c49778626c365092 100755 (executable)
@@ -2,7 +2,7 @@
  * speex.c: speex decoder/packetizer/encoder module making use of libspeex.
  *****************************************************************************
  * Copyright (C) 2003 VideoLAN
- * $Id: speex.c,v 1.11 2004/01/29 17:51:07 zorglub Exp $
+ * $Id: speex.c,v 1.12 2004/01/29 19:38:17 gbazin Exp $
  *
  * Authors: Gildas Bazin <gbazin@netcourrier.com>
  *
@@ -464,6 +464,7 @@ static void ParseSpeexComments( decoder_t *p_dec, ogg_packet *p_oggpacket )
         input_InfoCategory( p_input, _("Speex comment") );
     playlist_t *p_playlist = vlc_object_find( p_dec, VLC_OBJECT_PLAYLIST,
                                               FIND_ANYWHERE );
+    playlist_item_t *p_item;
 
     char *p_buf = (char *)p_oggpacket->packet;
     SpeexMode *p_mode;
index bcbf17a769e0d0c91d5f0116b1f4e26938be75db..ee248fc81cc94aaba494e1b95d261907226efeb2 100644 (file)
@@ -2,7 +2,7 @@
  * 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: win32_specific.c,v 1.34 2004/01/29 19:38:17 gbazin Exp $
  *
  * Authors: Samuel Hocevar <sam@zoy.org>
  *          Gildas Bazin <gbazin@netcourrier.com>
@@ -297,7 +297,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 +321,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;
             }