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 | |
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')
-rw-r--r-- | ext/ladspa/gstladspa.c | 7 | ||||
-rw-r--r-- | ext/lv2/gstlv2.c | 7 |
2 files changed, 12 insertions, 2 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, diff --git a/ext/lv2/gstlv2.c b/ext/lv2/gstlv2.c index 8572aa225..dd0a1d650 100644 --- a/ext/lv2/gstlv2.c +++ b/ext/lv2/gstlv2.c @@ -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__ |