0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 12:02:23 +02:00

ao_oss: hide warning

This commit is contained in:
wm4 2013-11-06 20:33:48 +01:00
parent 9db560b9a9
commit ce72aaae7b

View File

@ -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)