mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
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:
parent
ade37fc48e
commit
67c21b18f4
2 changed files with 12 additions and 2 deletions
|
@ -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,
|
||||
|
|
|
@ -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__
|
||||
|
|
Loading…
Reference in a new issue