aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2012-04-04 21:40:56 +0200
committerMax Kellermann <max@duempel.org>2012-04-04 21:40:56 +0200
commita9edf85a692e6afbe6c5efc9f2784e2c5d191eab (patch)
tree965b0f2a46ddf3d363378395d31d24e39a24c458 /src
parente7a18625177e2831d96baf2f7fc16f23bc99975d (diff)
downloadmpd-a9edf85a692e6afbe6c5efc9f2784e2c5d191eab.tar.gz
mpd-a9edf85a692e6afbe6c5efc9f2784e2c5d191eab.tar.xz
mpd-a9edf85a692e6afbe6c5efc9f2784e2c5d191eab.zip
output/jack: check for connection failure before starting playback
Diffstat (limited to '')
-rw-r--r--src/output/jack_output_plugin.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/output/jack_output_plugin.c b/src/output/jack_output_plugin.c
index bc13c2f85..c67fcd38a 100644
--- a/src/output/jack_output_plugin.c
+++ b/src/output/jack_output_plugin.c
@@ -576,6 +576,9 @@ mpd_jack_open(void *data, struct audio_format *audio_format, GError **error_r)
jd->pause = false;
+ if (jd->client != NULL && jd->shutdown)
+ mpd_jack_disconnect(jd);
+
if (jd->client == NULL && !mpd_jack_connect(jd, error_r))
return false;