summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorStefan Kost <ensonic@users.sf.net>2010-04-26 15:06:09 +0300
committerStefan Kost <ensonic@users.sf.net>2010-04-26 15:07:16 +0300
commit67c21b18f4d31dc80b66f27680597bd4af3133f1 (patch)
treed7857270ce12a6da0e88d0d48650ab272a45ace6 /ext
parentade37fc48e00a2f83334cbc300062767666ad7c0 (diff)
downloadgstreamer-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.c7
-rw-r--r--ext/lv2/gstlv2.c7
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__