mirror of
https://github.com/mpv-player/mpv
synced 2024-12-18 21:06:00 +00:00
ao_sndio: set non-blocking flag
Otherwise the feed thread and the playloop will get randomly blocked. This seems to fix most A/V sync issues.
This commit is contained in:
parent
1b1421866d
commit
12d93fdfef
@ -122,7 +122,7 @@ static int init(struct ao *ao)
|
||||
}, *ap;
|
||||
int i;
|
||||
|
||||
p->hdl = sio_open(p->dev, SIO_PLAY, 0);
|
||||
p->hdl = sio_open(p->dev, SIO_PLAY, 1);
|
||||
if (p->hdl == NULL) {
|
||||
MP_ERR(ao, "can't open sndio %s\n", p->dev);
|
||||
goto error;
|
||||
|
Loading…
Reference in New Issue
Block a user