diff options
author | Max Kellermann <max@duempel.org> | 2009-01-30 19:47:59 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-01-30 19:47:59 +0100 |
commit | a2e0b71aadfb3057b2bda0086b02b199298fe05f (patch) | |
tree | 3261f279054048d17623427468a0dd447b53a734 | |
parent | eeec32feaa83a6a83b7bec1e0c47079145ba90d8 (diff) | |
download | mpd-a2e0b71aadfb3057b2bda0086b02b199298fe05f.tar.gz mpd-a2e0b71aadfb3057b2bda0086b02b199298fe05f.tar.xz mpd-a2e0b71aadfb3057b2bda0086b02b199298fe05f.zip |
output_api: removed audio_output_closed()
The function is only used by the MVP output plugin, and this one call
is wrong.
-rw-r--r-- | src/output/mvp_plugin.c | 1 | ||||
-rw-r--r-- | src/output_api.c | 7 | ||||
-rw-r--r-- | src/output_api.h | 2 |
3 files changed, 0 insertions, 10 deletions
diff --git a/src/output/mvp_plugin.c b/src/output/mvp_plugin.c index 7eccb23a2..cb570c8ee 100644 --- a/src/output/mvp_plugin.c +++ b/src/output/mvp_plugin.c @@ -245,7 +245,6 @@ static void mvp_dropBufferedAudio(void *data) ioctl(md->fd, MVP_SET_AUD_RESET, 0x11); close(md->fd); md->fd = -1; - audio_output_closed(md->audio_output); } } diff --git a/src/output_api.c b/src/output_api.c index 7737fc9d7..204fa2dec 100644 --- a/src/output_api.c +++ b/src/output_api.c @@ -26,13 +26,6 @@ const char *audio_output_get_name(const struct audio_output *ao) return ao->name; } -void audio_output_closed(struct audio_output *ao) -{ - assert(ao->open); - - ao->open = false; -} - bool audio_output_is_pending(const struct audio_output *ao) { return ao->command != AO_COMMAND_NONE; diff --git a/src/output_api.h b/src/output_api.h index 207f72c2d..f1bd0e555 100644 --- a/src/output_api.h +++ b/src/output_api.h @@ -133,8 +133,6 @@ struct audio_output; const char *audio_output_get_name(const struct audio_output *ao); -void audio_output_closed(struct audio_output *ao); - /** * Returns true if there is a command pending. */ |