mirror of
https://github.com/mpv-player/mpv
synced 2025-04-08 18:53:30 +00:00
ao_oss: fix previous ao_oss commit
Basically I introduced an inverted condition, and the line removed was
inactive before commit ce72aaa
.
This commit is contained in:
parent
057c2e25b0
commit
dbb7927a1e
@ -407,7 +407,6 @@ static void uninit(struct ao *ao, bool immed)
|
|||||||
static void close_device(struct ao *ao)
|
static void close_device(struct ao *ao)
|
||||||
{
|
{
|
||||||
struct priv *p = ao->priv;
|
struct priv *p = ao->priv;
|
||||||
ioctl(p->audio_fd, SNDCTL_DSP_RESET, NULL);
|
|
||||||
close(p->audio_fd);
|
close(p->audio_fd);
|
||||||
p->audio_fd = -1;
|
p->audio_fd = -1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user