diff options
author | wm4 <wm4@nowhere> | 2014-09-26 15:46:30 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-09-26 15:46:30 +0200 |
commit | 12d93fdfef211185ca57093bad9c95fb74067c93 (patch) | |
tree | deb705dd29c14b8d670d27d482b8b96ac9ca1348 /audio/out/ao_sndio.c | |
parent | 1b1421866daba4864fc630ba84a5738baff89f6e (diff) | |
download | mpv-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.
Diffstat (limited to 'audio/out/ao_sndio.c')
-rw-r--r-- | audio/out/ao_sndio.c | 2 |
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; |