From: Gildas Bazin Date: Thu, 29 Jan 2004 19:38:17 +0000 (+0000) Subject: * modules/codec/speex.c, src/misc/win32_specific.c: compilation fixes. X-Git-Tag: 0.7.1~277 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=43ef6e102f38dec34888b83829f7d5f9d97566be;p=vlc * modules/codec/speex.c, src/misc/win32_specific.c: compilation fixes. --- diff --git a/modules/codec/speex.c b/modules/codec/speex.c index fdb0a8d5e7..639c84d130 100755 --- a/modules/codec/speex.c +++ b/modules/codec/speex.c @@ -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 * @@ -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; diff --git a/src/misc/win32_specific.c b/src/misc/win32_specific.c index bcbf17a769..ee248fc81c 100644 --- a/src/misc/win32_specific.c +++ b/src/misc/win32_specific.c @@ -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 * Gildas Bazin @@ -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; }