output/jack: check for connection failure before starting playback

This commit is contained in:
Max Kellermann
2012-04-04 21:40:56 +02:00
parent e7a1862517
commit a9edf85a69
2 changed files with 4 additions and 0 deletions

View File

@@ -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;