diff options
author | Stefan Kost <ensonic@users.sf.net> | 2010-04-26 15:06:09 +0300 |
---|---|---|
committer | Stefan Kost <ensonic@users.sf.net> | 2010-04-26 15:07:16 +0300 |
commit | 67c21b18f4d31dc80b66f27680597bd4af3133f1 (patch) | |
tree | d7857270ce12a6da0e88d0d48650ab272a45ace6 /ext/ladspa | |
parent | ade37fc48e00a2f83334cbc300062767666ad7c0 (diff) | |
download | gstreamer-plugins-bad-67c21b18f4d31dc80b66f27680597bd4af3133f1.tar.gz |
ladspa,lv2: don't fail in plugin_init when having 0 elements
If we fail, the plugin scanner will blacklist us.
Diffstat (limited to 'ext/ladspa')
-rw-r--r-- | ext/ladspa/gstladspa.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ext/ladspa/gstladspa.c b/ext/ladspa/gstladspa.c index 0c8f5e010..52a8d5b2d 100644 --- a/ext/ladspa/gstladspa.c +++ b/ext/ladspa/gstladspa.c @@ -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, |