-List of known vlc bugs $Id: BUGS,v 1.8 2002/03/20 03:12:20 ipkiss Exp $
+List of known vlc bugs $Id: BUGS,v 1.9 2002/03/20 23:00:16 gbazin Exp $
Please try to keep this file up to date. Also, grep for FIXME in the
source files for more and more bugs to fix.
* Audio output stutters on some audio cards. For instance kwyxz's SB
128 with an es1371 chip.
- * WaveOut doesn't close correctly under Windows 98.
-
Video output:
* waveout.c : Windows waveOut plugin for vlc
*****************************************************************************
* Copyright (C) 2001 VideoLAN
- * $Id: waveout.c,v 1.5 2002/03/19 12:48:01 gbazin Exp $
+ * $Id: waveout.c,v 1.6 2002/03/20 23:00:16 gbazin Exp $
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
*
if( (p_aout->p_sys->waveformat.nChannels != p_aout->i_channels) ||
(p_aout->p_sys->waveformat.nSamplesPerSec != p_aout->i_rate) )
{
+ /* Before calling waveOutClose we must reset the device */
+ waveOutReset( p_aout->p_sys->h_waveout );
+
if( waveOutClose( p_aout->p_sys->h_waveout ) != MMSYSERR_NOERROR )
{
intf_ErrMsg( "aout error: waveOutClose failed" );
intf_WarnMsg( 3, "aout: waveOut aout_Close ");
+ /* Before calling waveOutClose we must reset the device */
+ waveOutReset( p_aout->p_sys->h_waveout );
+
/* Close the device */
if( waveOutClose( p_aout->p_sys->h_waveout ) != MMSYSERR_NOERROR )
{
* interface, such as message output. See config.h for output configuration.
*****************************************************************************
* Copyright (C) 1998-2001 VideoLAN
- * $Id: intf_msg.c,v 1.46 2002/02/23 21:31:44 gbazin Exp $
+ * $Id: intf_msg.c,v 1.47 2002/03/20 23:00:15 gbazin Exp $
*
* Authors: Vincent Seguin <seguin@via.ecp.fr>
*
#ifndef HAVE_VASPRINTF
# ifdef WIN32
psz_temp = ConvertPrintfFormatString(psz_format);
+ if( !psz_temp )
+ {
+ fprintf(stderr, "intf warning: couldn't print message");
+ return;
+ }
vsprintf( psz_str, psz_temp, ap );
free( psz_temp );
# else
* ConvertPrintfFormatString: replace all occurrences of %ll with %I64 in the
* printf format string.
*****************************************************************************
- * Win32 doesn't recognize the "%lld" format in a printf string, so we have
+ * Win32 doesn't recognize the "%ll" format in a printf string, so we have
* to convert this string to something that win32 can handle.
* This is a REALLY UGLY HACK which won't even work in every situation,
* but hey I don't want to put an ifdef WIN32 each time I use printf with
* psz_format string. Once we'll know that we'll be able to malloc the
* destination string */
- for( i=0; i <= (strlen(psz_format) - 4); i++ )
+ if( strlen( psz_format ) <= 3 )
+ return strdup( psz_format );
+
+ for( i=0; i <= (strlen(psz_format) - 3); i++ )
{
if( !strncmp( (char *)(psz_format + i), "%ll", 3 ) )
{
if( psz_dest == NULL )
{
fprintf( stderr, "intf warning: ConvertPrintfFormatString failed\n");
- exit (errno);
+ return NULL;
}
/* Now build the modified string */
i_counter = 0;
- for( i=0; i <= (strlen(psz_format) - 4); i++ )
+ for( i=0; i <= (strlen(psz_format) - 3); i++ )
{
if( !strncmp( (char *)(psz_format + i), "%ll", 3 ) )
{