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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user