fix retrieval of port properties (metadata) when the value has no type
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user