1
0
mirror of https://github.com/mpv-player/mpv synced 2025-02-09 08:27:18 +00:00

Fix compilation with enabled radio capture and disabled OSS audio.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24603 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
voroshil 2007-09-24 16:48:08 +00:00
parent 6be56dbf2e
commit 2312ca9e70

View File

@ -857,12 +857,13 @@ static int init_audio(radio_priv_t *priv)
mp_msg(MSGT_RADIO, MSGL_ERR, MSGTR_RADIO_AudioInSetupFailed, strerror(errno));
return STREAM_ERROR;
}
#ifdef USE_OSS_AUDIO
if(is_oss)
ioctl(priv->audio_in.oss.audio_fd, SNDCTL_DSP_NONBLOCK, 0);
#endif
#if defined(HAVE_ALSA9) || defined(HAVE_ALSA1X)
else{
if(!is_oss)
snd_pcm_nonblock(priv->audio_in.alsa.handle,1);
}
#endif
priv->audio_buffer_size = seconds*priv->audio_in.samplerate*priv->audio_in.channels*