[vlc-devel] commit: Fix PortAudio warnings (Jean-Baptiste Kempf )
git version control
git at videolan.org
Thu Aug 20 20:38:13 CEST 2009
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Thu Aug 20 17:52:00 2009 +0200| [69fdc2f337c2f3209a9b82ec5874bdaf3dce048f] | committer: Jean-Baptiste Kempf
Fix PortAudio warnings
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=69fdc2f337c2f3209a9b82ec5874bdaf3dce048f
---
modules/audio_output/portaudio.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/modules/audio_output/portaudio.c b/modules/audio_output/portaudio.c
index 9611a22..a4459ca 100644
--- a/modules/audio_output/portaudio.c
+++ b/modules/audio_output/portaudio.c
@@ -126,6 +126,8 @@ static int paCallback( const void *inputBuffer, void *outputBuffer,
const PaStreamCallbackTimeInfo *paDate,
PaStreamCallbackFlags statusFlags, void *p_cookie )
{
+ VLC_UNUSED( inputBuffer ); VLC_UNUSED( statusFlags );
+
struct aout_sys_t *p_sys = (struct aout_sys_t*) p_cookie;
aout_instance_t *p_aout = p_sys->p_aout;
aout_buffer_t *p_buffer;
@@ -169,7 +171,6 @@ static int Open( vlc_object_t * p_this )
{
aout_instance_t *p_aout = (aout_instance_t *)p_this;
struct aout_sys_t * p_sys;
- int i_err;
msg_Dbg( p_aout, "entering Open()");
@@ -188,6 +189,8 @@ static int Open( vlc_object_t * p_this )
#ifdef PORTAUDIO_IS_SERIOUSLY_BROKEN
if( !b_init )
{
+ int i_err;
+
/* Test device */
if( PAOpenDevice( p_aout ) != VLC_SUCCESS )
{
More information about the vlc-devel
mailing list