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:
parent
2383231123
commit
dc989987ab
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user