Skip to content

Instantly share code, notes, and snippets.

@PromyLOPh
Created January 10, 2019 16:27
Show Gist options
  • Save PromyLOPh/325e301703f2ac349d3a960982b30de6 to your computer and use it in GitHub Desktop.
Save PromyLOPh/325e301703f2ac349d3a960982b30de6 to your computer and use it in GitHub Desktop.
diff --git a/src/player.c b/src/player.c
index bd43e2e..3dc0626 100644
--- a/src/player.c
+++ b/src/player.c
@@ -541,6 +541,7 @@ void *BarAoPlayThread (void *data) {
/* wait for more frames */
debugPrint ("ao player is waiting for more frames after code %i\n",
ret);
+ pthread_cond_broadcast (&player->aoplayCond);
pthread_cond_wait (&player->aoplayCond, &player->aoplayLock);
pthread_mutex_unlock (&player->aoplayLock);
continue;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment