mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2024-11-10 06:51:54 +00:00
Fix a regression in fluid_player_stop() (#822)
fluid_player_stop() should not set the STOPPING state, when the player has already finished. Introduced in 676923757c
.
This commit is contained in:
parent
3f5394a15d
commit
8413c35aca
1 changed files with 2 additions and 1 deletions
|
@ -2195,7 +2195,8 @@ fluid_player_play(fluid_player_t *player)
|
|||
int
|
||||
fluid_player_stop(fluid_player_t *player)
|
||||
{
|
||||
fluid_atomic_int_set(&player->status, FLUID_PLAYER_STOPPING);
|
||||
fluid_atomic_int_compare_and_exchange(&player->status, FLUID_PLAYER_READY, FLUID_PLAYER_STOPPING);
|
||||
fluid_atomic_int_compare_and_exchange(&player->status, FLUID_PLAYER_PLAYING, FLUID_PLAYER_STOPPING);
|
||||
fluid_player_seek(player, fluid_player_get_current_tick(player));
|
||||
return FLUID_OK;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue