summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2013-11-27 15:24:24 -0500
committerPaul Davis <paul@linuxaudiosystems.com>2013-11-27 15:24:24 -0500
commit56716a1f28b2341f7fd360b39b6eae66497bc512 (patch)
tree6c86b6a6305e3e14b51668c5891b62d2d0053441 /libs
parentdc4a984cd63d6264ecbd24e414a097420367f684 (diff)
add error check to call to PortManager::reestablish_ports
Diffstat (limited to 'libs')
-rw-r--r--libs/backends/jack/jack_audiobackend.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/libs/backends/jack/jack_audiobackend.cc b/libs/backends/jack/jack_audiobackend.cc
index 86e5b9d54c..332b6eec85 100644
--- a/libs/backends/jack/jack_audiobackend.cc
+++ b/libs/backends/jack/jack_audiobackend.cc
@@ -547,8 +547,11 @@ JACKAudioBackend::_start (bool for_latency_measurement)
/* Now that we have buffer size and sample rate established, the engine
can go ahead and do its stuff
*/
-
- engine.reestablish_ports ();
+
+ if (engine.reestablish_ports ()) {
+ error << _("Could not re-establish ports after connecting to JACK") << endmsg;
+ return -1;
+ }
if (!jack_port_type_get_buffer_size) {
warning << _("This version of JACK is old - you should upgrade to a newer version that supports jack_port_type_get_buffer_size()") << endmsg;