Re-instate the sio_flush() usage
Missed in the last update to 0.35.0 From Brad
This commit is contained in:
parent
6394d409f3
commit
bf38eb818f
|
@ -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
|
||||
|
||||
|
|
16
multimedia/mpv/patches/patch-audio_out_ao_sndio_c
Normal file
16
multimedia/mpv/patches/patch-audio_out_ao_sndio_c
Normal 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)) {
|
Loading…
Reference in New Issue
Block a user