Skip to content

Commit

Permalink
Fixes mix_context source removal bug.
Browse files Browse the repository at this point in the history
prev will point to the removed item, which will keep the rest of the
list.
  • Loading branch information
cigumo committed Sep 19, 2019
1 parent b0b661c commit e2625e5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mojoal.c
Expand Up @@ -1761,9 +1761,10 @@ static void mix_context(ALCcontext *ctx, float *stream, int len)
SDL_assert(prev != NULL);
prev->playlist_next = next;
}
} else {
prev = i;
}
SDL_AtomicSet(&i->mixer_accessible, 0);
prev = i;
}
}

Expand Down

0 comments on commit e2625e5

Please sign in to comment.