mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +00:00
ao_sndio: use sio_flush() to improve controls responsiveness
Use sio_flush() instead of sio_stop() to improve controls responsiveness.
This commit is contained in:
committed by
Dudemanguy
parent
b7bf5e619f
commit
1bbc7a2cd0
@@ -235,8 +235,13 @@ static void reset(struct ao *ao)
|
||||
if (p->playing) {
|
||||
p->playing = false;
|
||||
|
||||
#if HAVE_SNDIO_1_9
|
||||
if (!sio_flush(p->hdl)) {
|
||||
MP_ERR(ao, "reset: couldn't sio_flush()\n");
|
||||
#else
|
||||
if (!sio_stop(p->hdl)) {
|
||||
MP_ERR(ao, "reset: couldn't sio_stop()\n");
|
||||
#endif
|
||||
}
|
||||
p->delay = 0;
|
||||
if (!sio_start(p->hdl)) {
|
||||
|
||||
Reference in New Issue
Block a user