summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-11-06 20:33:48 +0100
committerwm4 <wm4@nowhere>2013-11-06 20:33:48 +0100
commitce72aaae7b15a7928d342a5e492036b9af64eab3 (patch)
treeab7e8b0095b7c1724afebabe7d481fdfdf351bbc
parent9db560b9a99b6b04a4e4b03017ef400fa54216d7 (diff)
downloadmpv-ce72aaae7b15a7928d342a5e492036b9af64eab3.tar.bz2
mpv-ce72aaae7b15a7928d342a5e492036b9af64eab3.tar.xz
ao_oss: hide warning
-rw-r--r--audio/out/ao_oss.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/audio/out/ao_oss.c b/audio/out/ao_oss.c
index 9085d05e5b..0461bdcac1 100644
--- a/audio/out/ao_oss.c
+++ b/audio/out/ao_oss.c
@@ -403,15 +403,15 @@ static void uninit(struct ao *ao, bool immed)
p->audio_fd = -1;
}
+#ifndef SNDCTL_DSP_RESET
static void close_device(struct ao *ao)
{
struct priv *p = ao->priv;
-#ifdef SNDCTL_DSP_RESET
ioctl(p->audio_fd, SNDCTL_DSP_RESET, NULL);
-#endif
close(p->audio_fd);
p->audio_fd = -1;
}
+#endif
// stop playing and empty buffers (for seeking/pause)
static void reset(struct ao *ao)