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:
@@ -398,7 +398,7 @@ static int jack_playAudio(struct audio_output *audioOutput,
|
||||
if ( jd->shutdown ) {
|
||||
ERROR("Refusing to play, because there is no client thread.\n");
|
||||
freeJackClient(jd);
|
||||
audioOutput->open = 0;
|
||||
audio_output_closed(audioOutput);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user