mirror of
https://github.com/mpv-player/mpv
synced 2025-04-20 22:26:30 +00:00
ao_oss: hide warning
This commit is contained in:
parent
9db560b9a9
commit
ce72aaae7b
@ -403,15 +403,15 @@ static void uninit(struct ao *ao, bool immed)
|
|||||||
p->audio_fd = -1;
|
p->audio_fd = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef SNDCTL_DSP_RESET
|
||||||
static void close_device(struct ao *ao)
|
static void close_device(struct ao *ao)
|
||||||
{
|
{
|
||||||
struct priv *p = ao->priv;
|
struct priv *p = ao->priv;
|
||||||
#ifdef SNDCTL_DSP_RESET
|
|
||||||
ioctl(p->audio_fd, SNDCTL_DSP_RESET, NULL);
|
ioctl(p->audio_fd, SNDCTL_DSP_RESET, NULL);
|
||||||
#endif
|
|
||||||
close(p->audio_fd);
|
close(p->audio_fd);
|
||||||
p->audio_fd = -1;
|
p->audio_fd = -1;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
// stop playing and empty buffers (for seeking/pause)
|
// stop playing and empty buffers (for seeking/pause)
|
||||||
static void reset(struct ao *ao)
|
static void reset(struct ao *ao)
|
||||||
|
Loading…
Reference in New Issue
Block a user