jack: clear "shutdown" flag on reconnect
When the connection failed once, you had to restart MPD, because it never cleared the jack_data.shutdown flag. Instead, it refused to play anything "because there is no client thread" (which is wrong at that point).
This commit is contained in:
@@ -220,6 +220,8 @@ mpd_jack_connect(struct jack_data *jd, struct audio_format *audio_format)
|
||||
jd->ringbuffer[0] = jack_ringbuffer_create(jd->ringbuffer_size);
|
||||
jd->ringbuffer[1] = jack_ringbuffer_create(jd->ringbuffer_size);
|
||||
|
||||
jd->shutdown = false;
|
||||
|
||||
if ((jd->client = jack_client_new(mpd_jack_name(jd))) == NULL) {
|
||||
g_warning("jack server not running?");
|
||||
return -1;
|
||||
|
Reference in New Issue
Block a user