aboutsummaryrefslogtreecommitdiffstats
path: root/src/audioOutputs/audioOutput_jack.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-09-24 07:20:37 +0200
committerMax Kellermann <max@duempel.org>2008-09-24 07:20:37 +0200
commit63fb1efb5cd6665b73ced155ba89a5c7f094d9ab (patch)
tree041dc886425590f7700c0c9de69eaacc82c1de85 /src/audioOutputs/audioOutput_jack.c
parent3be5db04308d2fb233b33a82089cd9afacf68cc9 (diff)
downloadmpd-63fb1efb5cd6665b73ced155ba89a5c7f094d9ab.tar.gz
mpd-63fb1efb5cd6665b73ced155ba89a5c7f094d9ab.tar.xz
mpd-63fb1efb5cd6665b73ced155ba89a5c7f094d9ab.zip
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().
Diffstat (limited to 'src/audioOutputs/audioOutput_jack.c')
-rw-r--r--src/audioOutputs/audioOutput_jack.c2
1 files changed, 1 insertions, 1 deletions
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;
}