Commit 5df4f82a authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

auhal: Fix kAudioDevicePropertyDeviceIsAlive check (vlc_bool_t size has...

auhal: Fix kAudioDevicePropertyDeviceIsAlive check (vlc_bool_t size has changed and doesn't match anymore the needed param size for kAudioDevicePropertyDeviceIsAlive).
parent 4082c803
...@@ -152,10 +152,13 @@ static int Open( vlc_object_t * p_this ) ...@@ -152,10 +152,13 @@ static int Open( vlc_object_t * p_this )
OSStatus err = noErr; OSStatus err = noErr;
UInt32 i_param_size = 0; UInt32 i_param_size = 0;
struct aout_sys_t *p_sys = NULL; struct aout_sys_t *p_sys = NULL;
vlc_bool_t b_alive = VLC_FALSE;
vlc_value_t val; vlc_value_t val;
aout_instance_t *p_aout = (aout_instance_t *)p_this; aout_instance_t *p_aout = (aout_instance_t *)p_this;
/* Use int here, to match kAudioDevicePropertyDeviceIsAlive
* property size */
int b_alive = VLC_FALSE;
/* Allocate structure */ /* Allocate structure */
p_aout->output.p_sys = malloc( sizeof( aout_sys_t ) ); p_aout->output.p_sys = malloc( sizeof( aout_sys_t ) );
if( p_aout->output.p_sys == NULL ) if( p_aout->output.p_sys == NULL )
...@@ -217,8 +220,9 @@ static int Open( vlc_object_t * p_this ) ...@@ -217,8 +220,9 @@ static int Open( vlc_object_t * p_this )
if( err != noErr ) if( err != noErr )
{ {
msg_Err( p_aout, "could not check whether device is alive: %4.4s", (char *)&err ); /* Be tolerant, only give a warning here */
goto error; msg_Warn( p_aout, "could not check whether device [0x%x] is alive: %4.4s", p_sys->i_selected_dev, (char *)&err );
b_alive = VLC_FALSE;
} }
if( b_alive == VLC_FALSE ) if( b_alive == VLC_FALSE )
......
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