diff options
author | Max Kellermann <max@duempel.org> | 2009-01-30 20:12:38 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-01-30 20:12:38 +0100 |
commit | 231636b9eb2ecd7d8669d309a74c3a51cd5ddfae (patch) | |
tree | ec70993f5ce903e37dee4a49578c4c16bde222e7 /src/output_api.c | |
parent | 6aa734dc355ee3d8d3deb03adb4013dddc45694f (diff) | |
download | mpd-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.c | 7 |
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; -} |