summaryrefslogtreecommitdiffstats
path: root/stream/stream_radio.c
diff options
context:
space:
mode:
Diffstat (limited to 'stream/stream_radio.c')
-rw-r--r--stream/stream_radio.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/stream/stream_radio.c b/stream/stream_radio.c
index 3e46148528..5f7097ef17 100644
--- a/stream/stream_radio.c
+++ b/stream/stream_radio.c
@@ -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*