Commit 7be4fec8 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

ALSA: do not insist if the device string is empty, just fail

Either we are out of memory, or someone really did not want ALSA.
parent 64785761
......@@ -327,13 +327,9 @@ static int Open( vlc_object_t *p_this )
/* Get device name */
char *psz_device = var_InheritString( p_aout, "alsa-audio-device" );
if( unlikely(psz_device == NULL) )
{
psz_device = strdup( DEFAULT_ALSA_DEVICE );
if( unlikely(psz_device == NULL) )
{
free( p_sys );
return VLC_ENOMEM;
}
return VLC_EGENERIC;
}
/* Choose the IEC device for S/PDIF output:
......
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