aboutsummaryrefslogtreecommitdiffstats
path: root/src/output_api.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-01-30 20:12:38 +0100
committerMax Kellermann <max@duempel.org>2009-01-30 20:12:38 +0100
commit231636b9eb2ecd7d8669d309a74c3a51cd5ddfae (patch)
treeec70993f5ce903e37dee4a49578c4c16bde222e7 /src/output_api.c
parent6aa734dc355ee3d8d3deb03adb4013dddc45694f (diff)
downloadmpd-231636b9eb2ecd7d8669d309a74c3a51cd5ddfae.tar.gz
mpd-231636b9eb2ecd7d8669d309a74c3a51cd5ddfae.tar.xz
mpd-231636b9eb2ecd7d8669d309a74c3a51cd5ddfae.zip
output_api: moved the command check out of method pause()
Move the "while" loop which checks for commands to the caller ao_pause(). This simplifies the pause() method, and lets us remove audio_output_is_pending().
Diffstat (limited to 'src/output_api.c')
-rw-r--r--src/output_api.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/output_api.c b/src/output_api.c
index 204fa2dec..48f68bb7f 100644
--- a/src/output_api.c
+++ b/src/output_api.c
@@ -19,14 +19,7 @@
#include "output_api.h"
#include "output_internal.h"
-#include <assert.h>
-
const char *audio_output_get_name(const struct audio_output *ao)
{
return ao->name;
}
-
-bool audio_output_is_pending(const struct audio_output *ao)
-{
- return ao->command != AO_COMMAND_NONE;
-}