return VLC_EGENERIC;
}
- p_sys->p_status = (snd_pcm_status_t *)malloc(snd_pcm_status_sizeof());
-
/* Choose the IEC device for S/PDIF output:
if the device is overriden by the user then it will be the one
otherwise we compute the default device based on the output format. */
if ( var_Get( p_aout, "audio-device", &val ) < 0 )
{
- free( p_sys->p_status );
free( p_sys );
free( psz_device );
return VLC_EGENERIC;
{
/* This should not happen ! */
msg_Err( p_aout, "internal: can't find audio-device (%i)", val.i_int );
- free( p_sys->p_status );
free( p_sys );
free( psz_device );
return VLC_EGENERIC;
{
msg_Err( p_aout, "cannot open ALSA device `%s' (%s)",
psz_iec_device, snd_strerror( i_snd_rc ) );
- free( p_sys->p_status );
free( p_sys );
free( psz_device );
return VLC_EGENERIC;
{
msg_Err( p_aout, "cannot open ALSA device `%s' (%s)",
psz_device, snd_strerror( i_snd_rc ) );
- free( p_sys->p_status );
free( p_sys );
free( psz_device );
return VLC_EGENERIC;
#ifdef ALSA_DEBUG
snd_output_close( p_sys->p_snd_stderr );
#endif
- free( p_sys->p_status );
free( p_sys );
return VLC_EGENERIC;
}
snd_output_close( p_sys->p_snd_stderr );
#endif
- free( p_sys->p_status );
free( p_sys );
}
*****************************************************************************/
static int ALSAThread( aout_instance_t * p_aout )
{
+ p_aout->output.p_sys->p_status =
+ (snd_pcm_status_t *)malloc(snd_pcm_status_sizeof());
+
/* Wait for the exact time to start playing (avoids resampling) */
vlc_mutex_lock( &p_aout->output.p_sys->lock );
if( !p_aout->output.p_sys->start_date )
ALSAFill( p_aout );
}
+ free( p_aout->output.p_sys->p_status );
return 0;
}