From d29d93f4cd30b2d27e73f95aa49110b1acb773ed Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 18 Oct 2016 16:45:39 -0400 Subject: [PATCH] fix retrieval of port properties (metadata) when the value has no type --- libs/backends/jack/jack_portengine.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libs/backends/jack/jack_portengine.cc b/libs/backends/jack/jack_portengine.cc index 98d2744d7a..a73f4608aa 100644 --- a/libs/backends/jack/jack_portengine.cc +++ b/libs/backends/jack/jack_portengine.cc @@ -135,9 +135,11 @@ JACKAudioBackend::get_port_property (PortHandle port, const std::string& key, st jack_uuid_t uuid = jack_port_uuid((jack_port_t*) port); rv = jack_get_property(uuid, key.c_str(), &cvalue, &ctype); - if (0 == rv && cvalue && ctype) { + if (0 == rv && cvalue) { value = cvalue; - type = ctype; + if (ctype) { + type = ctype; + } } else { rv = -1; }