summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/player.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/player.c b/src/player.c
index 568d15a..8c7ea7b 100644
--- a/src/player.c
+++ b/src/player.c
@@ -57,9 +57,9 @@ size_t BarPlayerCurlCb (void *ptr, size_t size, size_t nmemb, void *stream) {
/* FIXME: not the best solution to poll every second, but the easiest
* one I know... (pthread's conditions could be another solution) */
- if (player->doPause == 1) {
+ if (player->doPause) {
curl_easy_pause (player->audioFd, CURLPAUSE_ALL);
- while (player->doPause == 1) {
+ while (player->doPause && !player->doQuit) {
sleep (1);
}
curl_easy_pause (player->audioFd, CURLPAUSE_CONT);