Re-instate the sio_flush() usage

Missed in the last update to 0.35.0

From Brad
This commit is contained in:
rsadowski 2022-11-20 07:22:59 +00:00
parent 6394d409f3
commit bf38eb818f
2 changed files with 17 additions and 0 deletions

View File

@ -3,6 +3,7 @@ COMMENT = movie player based on MPlayer/mplayer2
GH_ACCOUNT = mpv-player
GH_PROJECT = mpv
GH_TAGNAME = v0.35.0
REVISION = 0
SHARED_LIBS += mpv 1.0 # 2.0

View File

@ -0,0 +1,16 @@
Use sio_flush() instead of sio_stop() to improve controls responsiveness
Index: audio/out/ao_sndio.c
--- audio/out/ao_sndio.c.orig
+++ audio/out/ao_sndio.c
@@ -237,8 +237,8 @@ static void reset(struct ao *ao)
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)) {