ports/x11/mplayer/patches/patch-libao2_ao_sndio_c

22 lines
582 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
Index: libao2/ao_sndio.c
--- libao2/ao_sndio.c.orig
+++ libao2/ao_sndio.c
@@ -181,7 +181,7 @@ static void uninit(int immed)
*/
static void reset(void)
{
- if (!sio_stop(hdl))
+ if (!sio_flush(hdl))
mp_msg(MSGT_AO, MSGL_ERR, "ao2: reset: couldn't stop\n");
delay = 0;
if (!sio_start(hdl))
@@ -237,7 +237,7 @@ static void audio_pause(void)
* sndio can't pause, so just stop
*/
prepause_delay = delay;
- if (!sio_stop(hdl))
+ if (!sio_flush(hdl))
mp_msg(MSGT_AO, MSGL_ERR, "ao2: pause: couldn't stop\n");
delay = 0;
}