comparison vamp-support/StaticOutputRdf.h @ 259:b10018fcd5eb

Check return value
author Chris Cannam <cannam@all-day-breakfast.com>
date Fri, 11 May 2018 17:00:50 +0100
parents f548eb11ae01
children
comparison
equal deleted inserted replaced
258:048ab927a952 259:b10018fcd5eb
157 // :output3 vamp:computes_signal_type :signal 157 // :output3 vamp:computes_signal_type :signal
158 // 158 //
159 // in which pluginKey == libraryId + ":" + pluginId 159 // in which pluginKey == libraryId + ":" + pluginId
160 160
161 std::string libraryId, pluginId; 161 std::string libraryId, pluginId;
162 decomposePluginKey(pluginKey, libraryId, pluginId); 162 if (!decomposePluginKey(pluginKey, libraryId, pluginId)) {
163 std::cerr << "Failed to decompose plugin key \"" << pluginKey
164 << "\"" << std::endl;
165 return;
166 }
163 167
164 typedef const uint8_t *S; 168 typedef const uint8_t *S;
165 169
166 SordNode *a = sord_new_uri 170 SordNode *a = sord_new_uri
167 (m_world, S("http://www.w3.org/1999/02/22-rdf-syntax-ns#type")); 171 (m_world, S("http://www.w3.org/1999/02/22-rdf-syntax-ns#type"));
304 } 308 }
305 libraryId = pluginKey.substr(0, i); 309 libraryId = pluginKey.substr(0, i);
306 pluginId = pluginKey.substr(i + 1); 310 pluginId = pluginKey.substr(i + 1);
307 return true; 311 return true;
308 } 312 }
309
310 }; 313 };
311 314
312 } 315 }
313 316
314 #endif 317 #endif