1
0
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:
tomty89 2018-01-24 08:23:37 +08:00 committed by Jan Ekström
parent dae88644e6
commit ba68e570de

View File

@ -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)