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().
This commit is contained in:
Max Kellermann
2009-01-30 20:12:38 +01:00
parent 6aa734dc35
commit 231636b9eb
4 changed files with 18 additions and 24 deletions
-7
View File
@@ -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;
}