Commit c43b8d99 authored by Jean-Paul Saman's avatar Jean-Paul Saman

access_alsa: abort if snd_pcm_start() returns an error.

Graciously fail if snd_pcm_start() returns an error.
parent 83af30dd
...@@ -623,7 +623,13 @@ static int OpenAudioDevAlsa( demux_t *p_demux, const char *psz_device ) ...@@ -623,7 +623,13 @@ static int OpenAudioDevAlsa( demux_t *p_demux, const char *psz_device )
goto adev_fail; goto adev_fail;
} }
snd_pcm_start( p_sys->p_alsa_pcm ); if( snd_pcm_start( p_sys->p_alsa_pcm ) < 0)
{
msg_Err( p_demux,
"ALSA: failed to start audio interface for use (%s)",
snd_strerror( i_err ) );
goto adev_fail;
}
return VLC_SUCCESS; return VLC_SUCCESS;
......
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