doesn't exist, but the rest of the code wasn't updated according to this new behaviour.
* modules/audio_output/waveout.c: changed a few error messages into warning messages.
* oss.c : OSS /dev/dsp module for vlc
*****************************************************************************
* Copyright (C) 2000-2002 VideoLAN
- * $Id: oss.c,v 1.37 2002/12/07 23:50:30 massiot Exp $
+ * $Id: oss.c,v 1.38 2002/12/10 18:22:01 gbazin Exp $
*
* Authors: Michel Kaempf <maxx@via.ecp.fr>
* Samuel Hocevar <sam@zoy.org>
p_aout->output.pf_play = Play;
- if ( var_Type( p_aout, "audio-device" ) < 0 )
+ if ( var_Type( p_aout, "audio-device" ) == 0 )
{
Probe( p_aout );
}
* sdl.c : SDL audio output plugin for vlc
*****************************************************************************
* Copyright (C) 2000-2002 VideoLAN
- * $Id: sdl.c,v 1.17 2002/12/07 23:50:30 massiot Exp $
+ * $Id: sdl.c,v 1.18 2002/12/10 18:22:01 gbazin Exp $
*
* Authors: Michel Kaempf <maxx@via.ecp.fr>
* Samuel Hocevar <sam@zoy.org>
AOUT_CHAN_LEFT | AOUT_CHAN_RIGHT :
AOUT_CHAN_CENTER);
- if ( var_Type( p_aout, "audio-device" ) < 0 )
+ if ( var_Type( p_aout, "audio-device" ) == 0 )
{
vlc_value_t val;
var_Create( p_aout, "audio-device", VLC_VAR_STRING | VLC_VAR_HASCHOICE );
NULL );
}
}
- else if ( var_Type( p_aout, "audio-device" ) < 0 )
+ else if ( var_Type( p_aout, "audio-device" ) == 0 )
{
/* First launch. */
vlc_value_t val;
* waveout.c : Windows waveOut plugin for vlc
*****************************************************************************
* Copyright (C) 2001 VideoLAN
- * $Id: waveout.c,v 1.12 2002/11/20 16:43:33 sam Exp $
+ * $Id: waveout.c,v 1.13 2002/12/10 18:22:01 gbazin Exp $
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
*
if ( OpenWaveOut( p_aout, WAVE_FORMAT_IEEE_FLOAT, i_nb_channels,
p_aout->output.output.i_rate ) )
{
- msg_Err( p_aout, "Audio device doesn't allow WAVE_FORMAT_IEEE_FLOAT" );
+ msg_Warn( p_aout, "Audio device can't use WAVE_FORMAT_IEEE_FLOAT" );
p_aout->output.output.i_format = VLC_FOURCC('s','1','6','l');
if ( OpenWaveOut( p_aout, WAVE_FORMAT_PCM, i_nb_channels,
CALLBACK_FUNCTION );
if( result == WAVERR_BADFORMAT )
{
- msg_Err( p_aout, "waveOutOpen failed WAVERR_BADFORMAT" );
- return( 1 );
+ msg_Warn( p_aout, "waveOutOpen failed WAVERR_BADFORMAT" );
+ return 1;
}
if( result != MMSYSERR_NOERROR )
{
- msg_Err( p_aout, "waveOutOpen failed" );
+ msg_Warn( p_aout, "waveOutOpen failed" );
return 1;
}
* dec.c : audio output API towards decoders
*****************************************************************************
* Copyright (C) 2002 VideoLAN
- * $Id: dec.c,v 1.3 2002/12/06 10:10:39 sam Exp $
+ * $Id: dec.c,v 1.4 2002/12/10 18:22:01 gbazin Exp $
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
*
{
int i;
- if ( var_Type( p_aout, "audio-device" ) >= 0 )
+ if ( var_Type( p_aout, "audio-device" ) != 0 )
{
var_Destroy( p_aout, "audio-device" );
}
- if ( var_Type( p_aout, "audio-channels" ) >= 0 )
+ if ( var_Type( p_aout, "audio-channels" ) != 0 )
{
var_Destroy( p_aout, "audio-channels" );
}
* intf.c : audio output API towards the interface modules
*****************************************************************************
* Copyright (C) 2002 VideoLAN
- * $Id: intf.c,v 1.10 2002/12/07 23:50:30 massiot Exp $
+ * $Id: intf.c,v 1.11 2002/12/10 18:22:01 gbazin Exp $
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
*
if ( p_aout == NULL ) return;
- if ( var_Type( p_aout, "audio-device" ) >= 0 )
+ if ( var_Type( p_aout, "audio-device" ) != 0 )
{
var_Destroy( p_aout, "audio-device" );
}
- if ( var_Type( p_aout, "audio-channels" ) >= 0 )
+ if ( var_Type( p_aout, "audio-channels" ) != 0 )
{
var_Destroy( p_aout, "audio-channels" );
}
* variables.c: routines for object variables handling
*****************************************************************************
* Copyright (C) 2002 VideoLAN
- * $Id: variables.c,v 1.16 2002/12/08 19:56:04 gbazin Exp $
+ * $Id: variables.c,v 1.17 2002/12/10 18:22:01 gbazin Exp $
*
* Authors: Samuel Hocevar <sam@zoy.org>
*
/*****************************************************************************
* var_Type: request a variable's type
*****************************************************************************
- * This function returns the variable type if it exists, or an error if the
+ * This function returns the variable type if it exists, or 0 if the
* variable could not be found.
*****************************************************************************/
int __var_Type( vlc_object_t *p_this, const char *psz_name )