Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
emscriptenaudio: don't get stuck in infinite loop if SDL_AudioStreamP…
…ut fails.
  • Loading branch information
icculus committed Jan 6, 2017
1 parent f07a1a5 commit 1a90c72
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/audio/emscripten/SDL_emscriptenaudio.c
Expand Up @@ -73,6 +73,7 @@ HandleAudioProcess(_THIS)
if (SDL_AudioStreamPut(this->stream, this->fake_stream, stream_len) == -1) {
SDL_AudioStreamClear(this->stream);
SDL_AtomicSet(&this->enabled, 0);
break;
}
}

Expand Down

0 comments on commit 1a90c72

Please sign in to comment.