Skip to content

Commit

Permalink
Merge pull request Ancurio#152 from Eblo/movie-audio-termination-bugfix
Browse files Browse the repository at this point in the history
Check for audioThreadTermReq in movie audio thread
  • Loading branch information
Splendide-Imaginarius committed Aug 30, 2024
2 parents 1462dc9 + a11a581 commit d2d46b2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/display/graphics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,9 @@ struct Movie

// Periodically check the buffers until one is available
while(true) {
// Quit if audio thread terminate request has been made
if (audioThreadTermReq) return;

alGetSourcei(audioSource, AL_BUFFERS_PROCESSED, &procBufs);
if(procBufs > 0) break;
SDL_Delay(AUDIO_SLEEP);
Expand Down

0 comments on commit d2d46b2

Please sign in to comment.