Use sio_flush() instead of sio_stop() to improve controls responsiveness

ok sthen
This commit is contained in:
ratchov 2022-04-29 08:53:41 +00:00
parent bcb258003d
commit c75bc45221
2 changed files with 3 additions and 3 deletions

View File

@ -4,7 +4,7 @@ GH_ACCOUNT = mpv-player
GH_PROJECT = mpv
GH_TAGNAME = v0.34.1
REVISION = 0
REVISION = 1
SHARED_LIBS += mpv 0.2 # 1.109

View File

@ -245,8 +245,8 @@ Index: audio/out/ao_sndio.c
+ if (p->playing) {
+ p->playing = false;
+
+ if (!sio_stop(p->hdl)) {
+ MP_ERR(ao, "reset: couldn't sio_stop()\n");
+ if (!sio_flush(p->hdl)) {
+ MP_ERR(ao, "reset: couldn't sio_flush()\n");
+ }
+ p->delay = 0;
+ if (!sio_start(p->hdl)) {