jack: initialize jd->client after !jd check

Prepare the next patch: make the "!jd" check independent of the
jd->client initialization.  This way we can change the "jd"
initialization semantics later.
This commit is contained in:
Max Kellermann 2008-08-26 08:27:15 +02:00
parent 2383231123
commit dc989987ab

View File

@ -337,12 +337,12 @@ static int jack_openDevice(AudioOutput *audioOutput)
DEBUG("connect!\n");
jd = newJackData();
audioOutput->data = jd;
}
if (connect_jack(audioOutput) < 0) {
freeJackData(audioOutput);
audioOutput->open = 0;
return -1;
}
if (jd->client == NULL && connect_jack(audioOutput) < 0) {
freeJackData(audioOutput);
audioOutput->open = 0;
return -1;
}
set_audioformat(audioOutput);