mirror of
https://github.com/outbackdingo/UltraGrid.git
synced 2026-03-21 20:40:27 +00:00
JACK: fixed error handling
This commit is contained in:
@@ -112,7 +112,7 @@ void audio_cap_jack_help(const char *driver_name)
|
||||
int channel_count;
|
||||
|
||||
client = jack_client_open(PACKAGE_STRING, JackNullOption, &status);
|
||||
if(status == JackFailure) {
|
||||
if(status & JackFailure) {
|
||||
fprintf(stderr, "[JACK capture] Opening JACK client failed.\n");
|
||||
return;
|
||||
}
|
||||
@@ -172,7 +172,7 @@ void * audio_cap_jack_init(char *cfg)
|
||||
}
|
||||
|
||||
s->client = jack_client_open(PACKAGE_STRING, JackNullOption, &status);
|
||||
if(status == JackFailure) {
|
||||
if(status & JackFailure) {
|
||||
fprintf(stderr, "[JACK capture] Opening JACK client failed.\n");
|
||||
goto error;
|
||||
}
|
||||
|
||||
@@ -142,7 +142,7 @@ void audio_play_jack_help(const char *driver_name)
|
||||
const char **ports;
|
||||
|
||||
client = jack_client_open(PACKAGE_STRING, JackNullOption, &status);
|
||||
if(status == JackFailure) {
|
||||
if(status & JackFailure) {
|
||||
fprintf(stderr, "[JACK playback] Opening JACK client failed.\n");
|
||||
return;
|
||||
}
|
||||
@@ -201,7 +201,7 @@ void * audio_play_jack_init(char *cfg)
|
||||
}
|
||||
|
||||
s->client = jack_client_open(PACKAGE_STRING, JackNullOption, &status);
|
||||
if(status == JackFailure) {
|
||||
if(status & JackFailure) {
|
||||
fprintf(stderr, "[JACK playback] Opening JACK client failed.\n");
|
||||
goto error;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user