aboutsummaryrefslogtreecommitdiffstats
path: root/src/player_thread.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-10-08 11:03:39 +0200
committerMax Kellermann <max@duempel.org>2008-10-08 11:03:39 +0200
commitb084bc28ede5d397e88a4e2bdad8c07a55069589 (patch)
treed61d58cc73ed7d591df05fee2f4a48682e8d9c8c /src/player_thread.c
parent71351160b1b6fd4203f27f9159ae39a476483e1a (diff)
downloadmpd-b084bc28ede5d397e88a4e2bdad8c07a55069589.tar.gz
mpd-b084bc28ede5d397e88a4e2bdad8c07a55069589.tar.xz
mpd-b084bc28ede5d397e88a4e2bdad8c07a55069589.zip
use the "bool" data type instead of "int"
"bool" should be used in C99 programs for boolean values.
Diffstat (limited to 'src/player_thread.c')
-rw-r--r--src/player_thread.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/player_thread.c b/src/player_thread.c
index 0c07778ed..a9e594eea 100644
--- a/src/player_thread.c
+++ b/src/player_thread.c
@@ -192,7 +192,7 @@ static void do_play(void)
int next = -1;
ob_clear();
- ob_set_lazy(0);
+ ob_set_lazy(false);
dc_start(&pc.notify, pc.next_song);
if (waitOnDecode(&decodeWaitedOn) < 0) {
@@ -222,7 +222,7 @@ static void do_play(void)
} else {
/* buffering is complete */
buffering = 0;
- ob_set_lazy(1);
+ ob_set_lazy(true);
}
}
@@ -314,7 +314,7 @@ static void do_play(void)
}
nextChunk = ob_absolute(crossFadeChunks);
if (nextChunk >= 0) {
- ob_set_lazy(1);
+ ob_set_lazy(true);
cross_fade_apply(beginChunk,
ob_get_chunk(nextChunk),
&(ob.audioFormat),
@@ -331,7 +331,7 @@ static void do_play(void)
} else {
/* wait for the
decoder */
- ob_set_lazy(0);
+ ob_set_lazy(false);
notify_wait(&pc.notify);
continue;
}