mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-09 16:24:57 +01:00
fix retrieval of port properties (metadata) when the value has no type
This commit is contained in:
parent
6bf65dd21d
commit
d29d93f4cd
1 changed files with 4 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue