diff options
author | David Robillard <d@drobilla.net> | 2008-05-19 18:33:50 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2008-05-19 18:33:50 +0000 |
commit | 401c5d05612e82c49ae8f4ac8f327ba459e20dfd (patch) | |
tree | d2839e55cd75a5dcd3c360993e45c3c6e423c225 /src/libs | |
parent | 1de134f362983fb15e563260e670df73715bf17a (diff) | |
download | ingen-401c5d05612e82c49ae8f4ac8f327ba459e20dfd.tar.gz ingen-401c5d05612e82c49ae8f4ac8f327ba459e20dfd.tar.bz2 ingen-401c5d05612e82c49ae8f4ac8f327ba459e20dfd.zip |
Fix crash on broken LV2 plugins with no name.
git-svn-id: http://svn.drobilla.net/lad/ingen@1213 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs')
-rw-r--r-- | src/libs/engine/LV2Plugin.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/libs/engine/LV2Plugin.cpp b/src/libs/engine/LV2Plugin.cpp index 7d069eda..871050e4 100644 --- a/src/libs/engine/LV2Plugin.cpp +++ b/src/libs/engine/LV2Plugin.cpp @@ -47,7 +47,11 @@ LV2Plugin::symbol() const const string LV2Plugin::name() const { - return slv2_value_as_string(slv2_plugin_get_name(_slv2_plugin)); + SLV2Value name = slv2_plugin_get_name(_slv2_plugin); + if (name) + return slv2_value_as_string(name); + else + return "(no name)"; } |