Commit a2e0b71a authored by Max Kellermann's avatar Max Kellermann

output_api: removed audio_output_closed()

The function is only used by the MVP output plugin, and this one call is wrong.
parent eeec32fe
...@@ -245,7 +245,6 @@ static void mvp_dropBufferedAudio(void *data) ...@@ -245,7 +245,6 @@ static void mvp_dropBufferedAudio(void *data)
ioctl(md->fd, MVP_SET_AUD_RESET, 0x11); ioctl(md->fd, MVP_SET_AUD_RESET, 0x11);
close(md->fd); close(md->fd);
md->fd = -1; md->fd = -1;
audio_output_closed(md->audio_output);
} }
} }
......
...@@ -26,13 +26,6 @@ const char *audio_output_get_name(const struct audio_output *ao) ...@@ -26,13 +26,6 @@ const char *audio_output_get_name(const struct audio_output *ao)
return ao->name; 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) bool audio_output_is_pending(const struct audio_output *ao)
{ {
return ao->command != AO_COMMAND_NONE; return ao->command != AO_COMMAND_NONE;
......
...@@ -133,8 +133,6 @@ struct audio_output; ...@@ -133,8 +133,6 @@ struct audio_output;
const char *audio_output_get_name(const struct audio_output *ao); 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. * Returns true if there is a command pending.
*/ */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment