From 63fb1efb5cd6665b73ced155ba89a5c7f094d9ab Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 24 Sep 2008 07:20:37 +0200 Subject: 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(). --- src/audioOutputs/audioOutput_jack.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/audioOutputs/audioOutput_jack.c') diff --git a/src/audioOutputs/audioOutput_jack.c b/src/audioOutputs/audioOutput_jack.c index 46b879f64..14b1e92e4 100644 --- a/src/audioOutputs/audioOutput_jack.c +++ b/src/audioOutputs/audioOutput_jack.c @@ -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; } -- cgit v1.2.3