aboutsummaryrefslogtreecommitdiffstats
path: root/src/output_all.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2010-11-05 18:34:06 +0100
committerMax Kellermann <max@duempel.org>2010-11-05 18:40:23 +0100
commitc594afeee70b29cc88e337a3b8fbd2a39ac37822 (patch)
tree0823a21db5b09023f5ffa296c464f099f627916a /src/output_all.c
parent32d10eedbde70ef3d5ae0f1567cee3e25e4f9993 (diff)
downloadmpd-c594afeee70b29cc88e337a3b8fbd2a39ac37822.tar.gz
mpd-c594afeee70b29cc88e337a3b8fbd2a39ac37822.tar.xz
mpd-c594afeee70b29cc88e337a3b8fbd2a39ac37822.zip
pipe: add helper function music_pipe_empty()
Diffstat (limited to 'src/output_all.c')
-rw-r--r--src/output_all.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/output_all.c b/src/output_all.c
index 4b5ba3a6f..86e78e13e 100644
--- a/src/output_all.c
+++ b/src/output_all.c
@@ -266,7 +266,7 @@ audio_output_all_open(const struct audio_format *audio_format,
else
/* if the pipe hasn't been cleared, the the audio
format must not have changed */
- assert(music_pipe_size(g_mp) == 0 ||
+ assert(music_pipe_empty(g_mp) ||
audio_format_equals(audio_format,
&input_audio_format));
@@ -378,7 +378,7 @@ audio_output_all_check(void)
assert(g_mp != NULL);
while ((chunk = music_pipe_peek(g_mp)) != NULL) {
- assert(music_pipe_size(g_mp) > 0);
+ assert(!music_pipe_empty(g_mp));
if (!chunk_is_consumed(chunk))
/* at least one output is not finished playing