[gst-cvs] gst-plugins-bad: ladspa/lv2: link and init to gst-controller
Stefan Kost
ensonic at kemper.freedesktop.org
Sun Jan 31 14:37:24 PST 2010
Module: gst-plugins-bad
Branch: master
Commit: ee2c1e662468a85d01e97e9c1256a67c5f4f45d2
URL: http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/commit/?id=ee2c1e662468a85d01e97e9c1256a67c5f4f45d2
Author: Stefan Kost <ensonic at users.sf.net>
Date: Sun Jan 31 22:05:30 2010 +0200
ladspa/lv2: link and init to gst-controller
---
ext/ladspa/Makefile.am | 2 +-
ext/ladspa/gstladspa.c | 3 +++
ext/lv2/Makefile.am | 2 +-
ext/lv2/gstlv2.c | 3 +++
4 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/ext/ladspa/Makefile.am b/ext/ladspa/Makefile.am
index 9f0f86a..353ec5e 100644
--- a/ext/ladspa/Makefile.am
+++ b/ext/ladspa/Makefile.am
@@ -8,7 +8,7 @@ libgstladspa_la_CFLAGS = \
libgstladspa_la_LIBADD = \
$(top_builddir)/gst-libs/gst/signalprocessor/libgstsignalprocessor- at GST_MAJORMINOR@.la \
$(GST_PLUGINS_BASE_LIBS) -lgstaudio-$(GST_MAJORMINOR) \
- $(LIBM) $(LRDF_LIBS)
+ $(GST_CONTROLLER_LIBS) $(LIBM) $(LRDF_LIBS)
libgstladspa_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
libgstladspa_la_LIBTOOLFLAGS = --tag=disable-static
diff --git a/ext/ladspa/gstladspa.c b/ext/ladspa/gstladspa.c
index 4b9b5b1..c1beae6 100644
--- a/ext/ladspa/gstladspa.c
+++ b/ext/ladspa/gstladspa.c
@@ -882,6 +882,9 @@ plugin_init (GstPlugin * plugin)
GST_DEBUG_CATEGORY_INIT (ladspa_debug, "ladspa",
GST_DEBUG_FG_GREEN | GST_DEBUG_BG_BLACK | GST_DEBUG_BOLD, "LADSPA");
+ /* initialize gst controller library */
+ gst_controller_init (NULL, NULL);
+
gst_plugin_add_dependency_simple (plugin,
"LADSPA_PATH",
GST_LADSPA_DEFAULT_PATH, NULL, GST_PLUGIN_DEPENDENCY_FLAG_NONE);
diff --git a/ext/lv2/Makefile.am b/ext/lv2/Makefile.am
index 08a5c08..7b6ac4e 100644
--- a/ext/lv2/Makefile.am
+++ b/ext/lv2/Makefile.am
@@ -8,7 +8,7 @@ libgstlv2_la_CFLAGS = \
libgstlv2_la_LIBADD = \
$(top_builddir)/gst-libs/gst/signalprocessor/libgstsignalprocessor- at GST_MAJORMINOR@.la \
$(GST_PLUGINS_BASE_LIBS) -lgstaudio-$(GST_MAJORMINOR) \
- $(LIBM) $(SLV2_LIBS)
+ $(GST_CONTROLLER_LIBS) $(LIBM) $(SLV2_LIBS)
libgstlv2_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
libgstlv2_la_LIBTOOLFLAGS = --tag=disable-static
diff --git a/ext/lv2/gstlv2.c b/ext/lv2/gstlv2.c
index c4fd816..85564c6 100644
--- a/ext/lv2/gstlv2.c
+++ b/ext/lv2/gstlv2.c
@@ -875,6 +875,9 @@ plugin_init (GstPlugin * plugin)
side_left_role = slv2_value_new_uri (world, NS_PG "sideLeftChannel");
side_right_role = slv2_value_new_uri (world, NS_PG "sideRightChannel");
+ /* initialize gst controller library */
+ gst_controller_init (NULL, NULL);
+
parent_class = g_type_class_ref (GST_TYPE_SIGNAL_PROCESSOR);
gst_lv2_plugin = plugin;
More information about the Gstreamer-commits
mailing list