diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2016-10-18 16:45:39 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2016-10-18 16:46:33 -0400 |
commit | d29d93f4cd30b2d27e73f95aa49110b1acb773ed (patch) | |
tree | ead08b4d0232c146495c6ef8f2aea2eae9b7b51a /libs/backends/jack | |
parent | 6bf65dd21da1c6cade07cd1ee33d72ea6bab3798 (diff) |
fix retrieval of port properties (metadata) when the value has no type
Diffstat (limited to 'libs/backends/jack')
-rw-r--r-- | libs/backends/jack/jack_portengine.cc | 6 |
1 files 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; } |