Skip to content

Commit

Permalink
Reset pause flag even if there is nothing to resume.
Browse files Browse the repository at this point in the history
  • Loading branch information
Lars Skovlund committed Feb 5, 2008
1 parent 30a6219 commit df2a49f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
2008-02-05 Lars Skovlund <[email protected]>

* src/sfx/player/polled.c (pp_resume): Reset pause flag even when
there is nothing to resume.

* src/sfx/player/polled.c (pp_add_iterator): Fix race condition
with the mixer.

Expand Down
3 changes: 3 additions & 0 deletions src/sfx/player/polled.c
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,10 @@ static int
pp_resume(void)
{
if (!play_it)
{
play_paused = 0;
return SFX_OK; /* Nothing to resume */
}

if (play_paused)
new_song = 1; /* Fake starting a new song, re-using the old
Expand Down

0 comments on commit df2a49f

Please sign in to comment.