mirror of
https://github.com/mpv-player/mpv
synced 2024-12-28 18:12:22 +00:00
ao_opensles: clear buffer queue in reset()
Avoid resume() from causing SL_RESULT_BUFFER_INSUFFICIENT ("Failed to Enqueue: 7" when seek or resume from pause).
This commit is contained in:
parent
dae88644e6
commit
ba68e570de
@ -217,7 +217,8 @@ static void set_play_state(struct ao *ao, SLuint32 state)
|
||||
|
||||
static void reset(struct ao *ao)
|
||||
{
|
||||
set_play_state(ao, SL_PLAYSTATE_STOPPED);
|
||||
struct priv *p = ao->priv;
|
||||
(*p->buffer_queue)->Clear(p->buffer_queue);
|
||||
}
|
||||
|
||||
static void resume(struct ao *ao)
|
||||
|
Loading…
Reference in New Issue
Block a user