Allow to clear LV2 plugin scan info

This commit is contained in:
Robin Gareus 2023-11-09 02:01:14 +01:00
parent e658056cd7
commit 5b77e348e7
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -1079,6 +1079,14 @@ PluginManager::get_ladspa_category (uint32_t plugin_id)
void
PluginManager::lv2_plugin (std::string const& uri, PluginScanLogEntry::PluginScanResult sr, std::string const& msg, bool reset)
{
if (reset && msg.empty ()) {
PluginScanLog::iterator j = _plugin_scan_log.find (PSLEPtr (new PluginScanLogEntry (LV2, uri)));
if (j != _plugin_scan_log.end ()) {
_plugin_scan_log.erase (j);
}
return;
}
PSLEPtr psle (scan_log_entry (LV2, uri));
if (reset) {
psle->reset ();