Commit fe2a8730 authored by Derk-Jan Hartman's avatar Derk-Jan Hartman

* modules/audio_output/coreaudio.c:

  - Many of the error streams were identical. This isn't helping debugging.
parent 92bbd4ea
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* coreaudio.c: CoreAudio output plugin * coreaudio.c: CoreAudio output plugin
***************************************************************************** *****************************************************************************
* Copyright (C) 2002-2003 VideoLAN * Copyright (C) 2002-2003 VideoLAN
* $Id: coreaudio.c,v 1.6 2003/06/06 02:23:30 hartman Exp $ * $Id: coreaudio.c,v 1.7 2003/11/25 21:21:36 hartman Exp $
* *
* Authors: Colin Delacroix <colin@zoy.org> * Authors: Colin Delacroix <colin@zoy.org>
* Jon Lech Johansen <jon-vl@nanocrew.net> * Jon Lech Johansen <jon-vl@nanocrew.net>
...@@ -653,7 +653,7 @@ static int InitHardwareInfo( aout_instance_t * p_aout ) ...@@ -653,7 +653,7 @@ static int InitHardwareInfo( aout_instance_t * p_aout )
&i_param_size, NULL ); &i_param_size, NULL );
if( err != noErr ) if( err != noErr )
{ {
msg_Err( p_aout, "AudioHardwareGetPropertyInfo failed: [%4.4s]", msg_Err( p_aout, "Could not get number of devices: [%4.4s]",
(char *)&err ); (char *)&err );
vlc_mutex_unlock( &p_sys->lock ); vlc_mutex_unlock( &p_sys->lock );
return( VLC_EGENERIC ); return( VLC_EGENERIC );
...@@ -684,7 +684,7 @@ static int InitHardwareInfo( aout_instance_t * p_aout ) ...@@ -684,7 +684,7 @@ static int InitHardwareInfo( aout_instance_t * p_aout )
&i_param_size, (void *)p_devices ); &i_param_size, (void *)p_devices );
if( err != noErr ) if( err != noErr )
{ {
msg_Err( p_aout, "AudioHardwareGetProperty failed: [%4.4s]", msg_Err( p_aout, "Could not get the device ID's: [%4.4s]",
(char *)&err ); (char *)&err );
free( (void *)p_devices ); free( (void *)p_devices );
vlc_mutex_unlock( &p_sys->lock ); vlc_mutex_unlock( &p_sys->lock );
...@@ -696,7 +696,7 @@ static int InitHardwareInfo( aout_instance_t * p_aout ) ...@@ -696,7 +696,7 @@ static int InitHardwareInfo( aout_instance_t * p_aout )
&i_param_size, (void *)&devid_def ); &i_param_size, (void *)&devid_def );
if( err != noErr ) if( err != noErr )
{ {
msg_Err( p_aout, "AudioHardwareGetProperty failed: [%4.4s]", msg_Err( p_aout, "Could not get default audio device: [%4.4s]",
(char *)&err ); (char *)&err );
free( (void *)p_devices ); free( (void *)p_devices );
vlc_mutex_unlock( &p_sys->lock ); vlc_mutex_unlock( &p_sys->lock );
...@@ -772,7 +772,7 @@ static int InitDeviceInfo( UInt32 i_dev, aout_instance_t * p_aout ) ...@@ -772,7 +772,7 @@ static int InitDeviceInfo( UInt32 i_dev, aout_instance_t * p_aout )
&i_param_size, NULL ); &i_param_size, NULL );
if( err != noErr ) if( err != noErr )
{ {
msg_Err( p_aout, "AudioDeviceGetPropertyInfo failed: [%4.4s]", msg_Err( p_aout, "Could not get size of devicename: [%4.4s]",
(char *)&err ); (char *)&err );
return( VLC_EGENERIC ); return( VLC_EGENERIC );
} }
...@@ -791,7 +791,7 @@ static int InitDeviceInfo( UInt32 i_dev, aout_instance_t * p_aout ) ...@@ -791,7 +791,7 @@ static int InitDeviceInfo( UInt32 i_dev, aout_instance_t * p_aout )
&i_param_size, p_dev->psz_device_name ); &i_param_size, p_dev->psz_device_name );
if( err != noErr ) if( err != noErr )
{ {
msg_Err( p_aout, "AudioDeviceGetProperty failed: [%4.4s]", msg_Err( p_aout, "Could not get devicename: [%4.4s]",
(char *)&err ); (char *)&err );
free( (void *)p_dev->psz_device_name ); free( (void *)p_dev->psz_device_name );
return( VLC_EGENERIC ); return( VLC_EGENERIC );
...@@ -805,7 +805,7 @@ static int InitDeviceInfo( UInt32 i_dev, aout_instance_t * p_aout ) ...@@ -805,7 +805,7 @@ static int InitDeviceInfo( UInt32 i_dev, aout_instance_t * p_aout )
&i_param_size, NULL ); &i_param_size, NULL );
if( err != noErr ) if( err != noErr )
{ {
msg_Err( p_aout, "AudioDeviceGetPropertyInfo failed: [%4.4s]", msg_Err( p_aout, "Could not get size of stream configuration: [%4.4s]",
(char *)&err ); (char *)&err );
free( (void *)p_dev->psz_device_name ); free( (void *)p_dev->psz_device_name );
return( VLC_EGENERIC ); return( VLC_EGENERIC );
...@@ -824,7 +824,7 @@ static int InitDeviceInfo( UInt32 i_dev, aout_instance_t * p_aout ) ...@@ -824,7 +824,7 @@ static int InitDeviceInfo( UInt32 i_dev, aout_instance_t * p_aout )
&i_param_size, p_buffer_list ); &i_param_size, p_buffer_list );
if( err != noErr ) if( err != noErr )
{ {
msg_Err( p_aout, "AudioDeviceGetProperty failed: [%4.4s]", msg_Err( p_aout, "Could not get stream configuration: [%4.4s]",
(char *)&err ); (char *)&err );
free( (void *)p_dev->psz_device_name ); free( (void *)p_dev->psz_device_name );
free( (void *)p_buffer_list ); free( (void *)p_buffer_list );
...@@ -995,7 +995,7 @@ static int InitStreamInfo( UInt32 i_dev, aout_instance_t * p_aout, ...@@ -995,7 +995,7 @@ static int InitStreamInfo( UInt32 i_dev, aout_instance_t * p_aout,
&i_param_size, NULL ); &i_param_size, NULL );
if( err != noErr ) if( err != noErr )
{ {
msg_Err( p_aout, "AudioStreamGetPropertyInfo failed: [%4.4s]", msg_Err( p_aout, "Could not retrieve the number of streams: [%4.4s]",
(char *)&err ); (char *)&err );
return( VLC_EGENERIC ); return( VLC_EGENERIC );
} }
...@@ -1019,7 +1019,7 @@ static int InitStreamInfo( UInt32 i_dev, aout_instance_t * p_aout, ...@@ -1019,7 +1019,7 @@ static int InitStreamInfo( UInt32 i_dev, aout_instance_t * p_aout,
&i_param_size, P_STREAMS ); &i_param_size, P_STREAMS );
if( err != noErr ) if( err != noErr )
{ {
msg_Err( p_aout, "AudioStreamGetProperty failed: [%4.4s]", msg_Err( p_aout, "Could no get the streams: [%4.4s]",
(char *)&err ); (char *)&err );
free( (void *)P_STREAMS ); free( (void *)P_STREAMS );
return( VLC_EGENERIC ); return( VLC_EGENERIC );
...@@ -1141,7 +1141,7 @@ static int InitDevice( aout_instance_t * p_aout ) ...@@ -1141,7 +1141,7 @@ static int InitDevice( aout_instance_t * p_aout )
&i_param_size, &p_sys->b_dev_alive ); &i_param_size, &p_sys->b_dev_alive );
if( err != noErr ) if( err != noErr )
{ {
msg_Err( p_aout, "AudioDeviceGetProperty failed: %4.4s", msg_Err( p_aout, "Could not check whether device is alive: %4.4s",
(char *)&err ); (char *)&err );
return( VLC_EGENERIC ); return( VLC_EGENERIC );
} }
...@@ -1171,7 +1171,7 @@ static int InitDevice( aout_instance_t * p_aout ) ...@@ -1171,7 +1171,7 @@ static int InitDevice( aout_instance_t * p_aout )
(void *)&p_sys->sfmt_revert ); (void *)&p_sys->sfmt_revert );
if( err != noErr ) if( err != noErr )
{ {
msg_Err( p_aout, "AudioStreamGetPropertyInfo failed: [%4.4s]", msg_Err( p_aout, "Could not retrieve the original streamformat: [%4.4s]",
(char *)&err ); (char *)&err );
return( VLC_EGENERIC ); return( VLC_EGENERIC );
} }
...@@ -1212,7 +1212,7 @@ static int InitDevice( aout_instance_t * p_aout ) ...@@ -1212,7 +1212,7 @@ static int InitDevice( aout_instance_t * p_aout )
&P_STREAMS[i_stream] ); &P_STREAMS[i_stream] );
if( err != noErr ) if( err != noErr )
{ {
msg_Err( p_aout, "AudioStreamSetProperty failed: [%4.4s]", msg_Err( p_aout, "Could not set the stream format: [%4.4s]",
(char *)&err ); (char *)&err );
vlc_mutex_unlock( &w.lock ); vlc_mutex_unlock( &w.lock );
vlc_mutex_destroy( &w.lock ); vlc_mutex_destroy( &w.lock );
...@@ -1310,7 +1310,7 @@ static void FreeDevice( aout_instance_t * p_aout ) ...@@ -1310,7 +1310,7 @@ static void FreeDevice( aout_instance_t * p_aout )
&p_sys->sfmt_revert ); &p_sys->sfmt_revert );
if( err != noErr ) if( err != noErr )
{ {
msg_Err( p_aout, "AudioStreamSetProperty failed: [%4.4s]", msg_Err( p_aout, "AudioStreamSetProperty revert format failed: [%4.4s]",
(char *)&err ); (char *)&err );
} }
} }
...@@ -1409,7 +1409,7 @@ static OSStatus DeviceListener( AudioDeviceID inDevice, ...@@ -1409,7 +1409,7 @@ static OSStatus DeviceListener( AudioDeviceID inDevice,
&i_param_size, &p_sys->b_dev_alive ); &i_param_size, &p_sys->b_dev_alive );
if( err != noErr ) if( err != noErr )
{ {
msg_Err( p_aout, "AudioDeviceGetProperty failed: %4.4s", msg_Err( p_aout, "Could not determine wether device is alive: %4.4s",
(char *)&err ); (char *)&err );
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment