From 12d93fdfef211185ca57093bad9c95fb74067c93 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 26 Sep 2014 15:46:30 +0200 Subject: 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. --- audio/out/ao_sndio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/audio/out/ao_sndio.c b/audio/out/ao_sndio.c index d1f70cb362..b698f9880a 100644 --- a/audio/out/ao_sndio.c +++ b/audio/out/ao_sndio.c @@ -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; -- cgit v1.2.3