0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 12:02:23 +02: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:
wm4 2014-09-26 15:46:30 +02:00
parent 1b1421866d
commit 12d93fdfef

View File

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