summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-09-26 15:46:30 +0200
committerwm4 <wm4@nowhere>2014-09-26 15:46:30 +0200
commit12d93fdfef211185ca57093bad9c95fb74067c93 (patch)
treedeb705dd29c14b8d670d27d482b8b96ac9ca1348
parent1b1421866daba4864fc630ba84a5738baff89f6e (diff)
downloadmpv-12d93fdfef211185ca57093bad9c95fb74067c93.tar.bz2
mpv-12d93fdfef211185ca57093bad9c95fb74067c93.tar.xz
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.
-rw-r--r--audio/out/ao_sndio.c2
1 files changed, 1 insertions, 1 deletions
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;