Edit

IABSD.fr/ports/x11/mplayer/patches/patch-libao2_ao_sndio_c

Branch :

  • Show log

    Commit

  • Author : rsadowski
    Date : 2023-04-09 20:03:20
    Hash : 82926db8
    Message : Update MPlayer to 20230409 snapshot. Update diff from Brad

  • x11/mplayer/patches/patch-libao2_ao_sndio_c
  • 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;
     }