# HG changeset patch # User voroshil # Date 1190652488 0 # Node ID af12ba770230414d6969213808c70e42df78977c # Parent 6d5999a6b4e2630ef49894a0722b8f76e7bfedf2 Fix compilation with enabled radio capture and disabled OSS audio. diff -r 6d5999a6b4e2 -r af12ba770230 stream/stream_radio.c --- a/stream/stream_radio.c Mon Sep 24 15:39:12 2007 +0000 +++ b/stream/stream_radio.c Mon Sep 24 16:48:08 2007 +0000 @@ -857,12 +857,13 @@ 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*