fix retrieval of port properties (metadata) when the value has no type

This commit is contained in:
Paul Davis 2016-10-18 16:45:39 -04:00
parent 6bf65dd21d
commit d29d93f4cd

View file

@ -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;
}