[LV2] Possible Lilv Bug

Michael Fisher mfisher31 at gmail.com
Thu Jan 10 18:10:54 PST 2013


Hi all,

This might already be known about.  I'm finding that I have to query for
other data before getting required/optional features with Lilv.

For example, assuming the world and plugin collection is already setup,
and I want to query feature requirements before any other data ...

LilvNodes* features = lilv_plugin_get_supported_features(plugin);
LILV_FOREACH(nodes, i, features) 
{    
    printf("%s", lilv_node_as_uri(lilv_nodes_get(features,
i)));                
}

... gives me no output, while ...

LilvNode* val = lilv_plugin_get_name (plugin);
lilv_node_free (val);

LilvNodes* features = lilv_plugin_get_supported_features(plugin);
LILV_FOREACH(nodes, i, features) 
{    
    printf("%s", lilv_node_as_uri(lilv_nodes_get(features,
i)));                
}

... returns prints all supported features. Is that normal? 

This can be reproduced in lv2info.c by commenting out (approximately)
line 148 to 222

David, i'm working with your master drobilla-lad SVN at:
Repository UUID: a436a847-0d15-0410-975c-d299462d15a1
Revision: 4913



More information about the Devel mailing list