output: added audio_output_closed()
The JACK output plugin needs to reset its "opened" flag when the JACK server fails. To prevent it from accessing the audio_output struct directly introduce the API function audio_output_closed().
This commit is contained in:
@@ -22,3 +22,11 @@ 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 = 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user