Commit 5bb15508 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

ALSA: small simplification

parent 542f25d1
......@@ -728,6 +728,7 @@ static void Close( vlc_object_t *p_this )
vlc_join( p_sys->thread, NULL );
vlc_sem_destroy( &p_sys->wait );
snd_pcm_drop( p_sys->p_snd_pcm );
snd_pcm_close( p_sys->p_snd_pcm );
#ifdef ALSA_DEBUG
snd_output_close( p_sys->p_snd_stderr );
......@@ -735,11 +736,6 @@ static void Close( vlc_object_t *p_this )
free( p_sys );
}
static void pcm_drop(void *pcm)
{
snd_pcm_drop(pcm);
}
/*****************************************************************************
* ALSAThread: asynchronous thread used to DMA the data to the device
*****************************************************************************/
......@@ -752,12 +748,10 @@ static void* ALSAThread( void *data )
vlc_sem_wait( &p_sys->wait );
mwait( p_sys->start_date - AOUT_PTS_TOLERANCE / 4 );
vlc_cleanup_push( pcm_drop, p_sys->p_snd_pcm );
for(;;)
ALSAFill( p_aout );
assert(0);
vlc_cleanup_pop();
}
/*****************************************************************************
......
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