ladspa,lv2: don't fail in plugin_init when having 0 elements

If we fail, the plugin scanner will blacklist us.
This commit is contained in:
Stefan Kost 2010-04-26 15:06:09 +03:00
parent ade37fc48e
commit 67c21b18f4
2 changed files with 12 additions and 2 deletions

View file

@ -880,7 +880,12 @@ plugin_init (GstPlugin * plugin)
ladspa_plugin = plugin;
descriptor_quark = g_quark_from_static_string ("ladspa-descriptor");
return ladspa_plugin_path_search ();
if (!ladspa_plugin_path_search ()) {
GST_WARNING ("no ladspa plugins found, check LADSPA_PATH");
}
/* we don't want to fail, even if there are no elements registered */
return TRUE;
}
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,

View file

@ -891,7 +891,12 @@ plugin_init (GstPlugin * plugin)
if (!gst_audio_channel_position_get_type ())
return FALSE;
return lv2_plugin_discover ();
if (!lv2_plugin_discover ()) {
GST_WARNING ("no lv2 plugins found, check LV2_PATH");
}
/* we don't want to fail, even if there are no elements registered */
return TRUE;
}
#ifdef __GNUC__