aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-11-10 11:37:57 +0100
committerDavid Robillard <d@drobilla.net>2018-11-10 11:45:15 +0100
commit9e4256253ba8ef5742658b9e33f993d715aa62b9 (patch)
tree77bd4029c0b7295c60734cb873063f348343f5e8
parent8e1c42a44da4ff6834c66b1cc352addeaa61b723 (diff)
downloadjalv-9e4256253ba8ef5742658b9e33f993d715aa62b9.tar.gz
jalv-9e4256253ba8ef5742658b9e33f993d715aa62b9.tar.bz2
jalv-9e4256253ba8ef5742658b9e33f993d715aa62b9.zip
Use distinct error codes for all cases in jalv_open
-rw-r--r--src/jalv.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/jalv.c b/src/jalv.c
index 4f8a097..3adbb28 100644
--- a/src/jalv.c
+++ b/src/jalv.c
@@ -1005,7 +1005,7 @@ jalv_open(Jalv* const jalv, int argc, char** argv)
if (!(jalv->backend = jalv_backend_init(jalv))) {
fprintf(stderr, "Failed to connect to audio system\n");
jalv_close(jalv);
- return -7;
+ return -6;
}
printf("Sample rate: %u Hz\n", jalv->sample_rate);
@@ -1097,7 +1097,7 @@ jalv_open(Jalv* const jalv, int argc, char** argv)
if (!feature_is_supported(jalv, uri)) {
fprintf(stderr, "Feature %s is not supported\n", uri);
jalv_close(jalv);
- return -6;
+ return -8;
}
}
lilv_nodes_free(req_feats);
@@ -1108,7 +1108,7 @@ jalv_open(Jalv* const jalv, int argc, char** argv)
if (!jalv->instance) {
fprintf(stderr, "Failed to instantiate plugin.\n");
jalv_close(jalv);
- return -8;
+ return -9;
}
jalv->features.ext_data.data_access =