feat: log error if urid map feature is not available
Signed-off-by: Christopher Arndt <chris@chrisarndt.de>
This commit is contained in:
parent
c4b5504309
commit
2082e5bbf7
@ -32,6 +32,7 @@ proc instantiate(descriptor: ptr Lv2Descriptor; sampleRate: cdouble;
|
|||||||
plug.map = cast[ptr UridMap](lv2FeaturesData(features, lv2UridMap))
|
plug.map = cast[ptr UridMap](lv2FeaturesData(features, lv2UridMap))
|
||||||
|
|
||||||
if plug.map.isNil:
|
if plug.map.isNil:
|
||||||
|
plug.log.error(&"Required feature {lv2UridMap} not available.")
|
||||||
freeShared(plug)
|
freeShared(plug)
|
||||||
return cast[Lv2Handle](nil)
|
return cast[Lv2Handle](nil)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user