[0.11] gst-plugins-base: libs: make sure gobject-introspection scanner calls gst_init()

Tim Müller tpm at kemper.freedesktop.org
Wed Mar 9 10:50:58 PST 2011


Module: gst-plugins-base
Branch: 0.11
Commit: 842911d2419049de186a1b2343f161f62d1daa35
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-base/commit/?id=842911d2419049de186a1b2343f161f62d1daa35

Author: Tim-Philipp Müller <tim.muller at collabora.co.uk>
Date:   Wed Mar  9 11:51:14 2011 +0000

libs: make sure gobject-introspection scanner calls gst_init()

Fixes introspection failures caused by type assertions/warnings.
Since we now moved from _get_type() functions to external GType
variables in a couple of places, we actually have to call gst_init()
to make sure these are set when we use GST_TYPE_FOO.

---

 gst-libs/gst/app/Makefile.am        |    1 +
 gst-libs/gst/audio/Makefile.am      |    1 +
 gst-libs/gst/cdda/Makefile.am       |    1 +
 gst-libs/gst/fft/Makefile.am        |    1 +
 gst-libs/gst/interfaces/Makefile.am |    1 +
 gst-libs/gst/netbuffer/Makefile.am  |    1 +
 gst-libs/gst/riff/Makefile.am       |    1 +
 gst-libs/gst/rtp/Makefile.am        |    1 +
 gst-libs/gst/rtsp/Makefile.am       |    1 +
 gst-libs/gst/sdp/Makefile.am        |    1 +
 gst-libs/gst/tag/Makefile.am        |    1 +
 gst-libs/gst/video/Makefile.am      |    1 +
 12 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/gst-libs/gst/app/Makefile.am b/gst-libs/gst/app/Makefile.am
index 72e3444..c4bf84a 100644
--- a/gst-libs/gst/app/Makefile.am
+++ b/gst-libs/gst/app/Makefile.am
@@ -55,6 +55,7 @@ GstApp- at GST_MAJORMINOR@.gir: $(INTROSPECTION_SCANNER) libgstapp- at GST_MAJORMINOR@
 		--pkg gstreamer- at GST_MAJORMINOR@ \
 		--pkg gstreamer-base- at GST_MAJORMINOR@ \
 		--pkg-export gstreamer-app- at GST_MAJORMINOR@ \
+		--add-init-section="gst_init(NULL,NULL);" \
 		--output $@ \
 		$(gir_headers) \
 		$(gir_sources)
diff --git a/gst-libs/gst/audio/Makefile.am b/gst-libs/gst/audio/Makefile.am
index 0a28217..51c8607 100644
--- a/gst-libs/gst/audio/Makefile.am
+++ b/gst-libs/gst/audio/Makefile.am
@@ -87,6 +87,7 @@ GstAudio- at GST_MAJORMINOR@.gir: $(INTROSPECTION_SCANNER) libgstaudio- at GST_MAJORMI
 		--pkg gstreamer-base- at GST_MAJORMINOR@ \
 		--pkg gstreamer-interfaces- at GST_MAJORMINOR@ \
 		--pkg-export gstreamer-audio- at GST_MAJORMINOR@ \
+		--add-init-section="gst_init(NULL,NULL);" \
 		--output $@ \
 		$(gir_headers) \
 		$(gir_sources)
diff --git a/gst-libs/gst/cdda/Makefile.am b/gst-libs/gst/cdda/Makefile.am
index 09f334a..264f942 100644
--- a/gst-libs/gst/cdda/Makefile.am
+++ b/gst-libs/gst/cdda/Makefile.am
@@ -40,6 +40,7 @@ GstCdda- at GST_MAJORMINOR@.gir: $(INTROSPECTION_SCANNER) libgstcdda- at GST_MAJORMINO
 		--pkg gstreamer-base- at GST_MAJORMINOR@ \
 		--pkg gstreamer-tag- at GST_MAJORMINOR@ \
 		--pkg-export gstreamer-cdda- at GST_MAJORMINOR@ \
+		--add-init-section="gst_init(NULL,NULL);" \
 		--output $@ \
 		$(gir_headers) \
 		$(gir_sources)
diff --git a/gst-libs/gst/fft/Makefile.am b/gst-libs/gst/fft/Makefile.am
index 7e84eae..348fe45 100644
--- a/gst-libs/gst/fft/Makefile.am
+++ b/gst-libs/gst/fft/Makefile.am
@@ -63,6 +63,7 @@ GstFft- at GST_MAJORMINOR@.gir: $(INTROSPECTION_SCANNER) libgstfft- at GST_MAJORMINOR@
 		--libtool="$(top_builddir)/libtool" \
 		--pkg gstreamer- at GST_MAJORMINOR@ \
 		--pkg-export gstreamer-fft- at GST_MAJORMINOR@ \
+		--add-init-section="gst_init(NULL,NULL);" \
 		--output $@ \
 		$(gir_headers) \
 		$(gir_sources)
diff --git a/gst-libs/gst/interfaces/Makefile.am b/gst-libs/gst/interfaces/Makefile.am
index f462211..eda0d91 100644
--- a/gst-libs/gst/interfaces/Makefile.am
+++ b/gst-libs/gst/interfaces/Makefile.am
@@ -94,6 +94,7 @@ GstInterfaces- at GST_MAJORMINOR@.gir: $(INTROSPECTION_SCANNER) libgstinterfaces- at G
 		--libtool="$(top_builddir)/libtool" \
 		--pkg gstreamer- at GST_MAJORMINOR@ \
 		--pkg-export gstreamer-interfaces- at GST_MAJORMINOR@ \
+		--add-init-section="gst_init(NULL,NULL);" \
 		--output $@ \
 		$(gir_headers) \
 		$(gir_sources)
diff --git a/gst-libs/gst/netbuffer/Makefile.am b/gst-libs/gst/netbuffer/Makefile.am
index fced57c..a6bba8c 100644
--- a/gst-libs/gst/netbuffer/Makefile.am
+++ b/gst-libs/gst/netbuffer/Makefile.am
@@ -28,6 +28,7 @@ GstNetbuffer- at GST_MAJORMINOR@.gir: $(INTROSPECTION_SCANNER) libgstnetbuffer- at GST
 		--libtool="$(top_builddir)/libtool" \
 		--pkg gstreamer- at GST_MAJORMINOR@ \
 		--pkg-export gstreamer-netbuffer- at GST_MAJORMINOR@ \
+		--add-init-section="gst_init(NULL,NULL);" \
 		--output $@ \
 		$(gir_headers) \
 		$(gir_sources)
diff --git a/gst-libs/gst/riff/Makefile.am b/gst-libs/gst/riff/Makefile.am
index 0bde2b0..07e7204 100644
--- a/gst-libs/gst/riff/Makefile.am
+++ b/gst-libs/gst/riff/Makefile.am
@@ -47,6 +47,7 @@ GstRiff- at GST_MAJORMINOR@.gir: $(INTROSPECTION_SCANNER) libgstriff- at GST_MAJORMINO
 		--pkg gstreamer-audio- at GST_MAJORMINOR@ \
 		--pkg gstreamer-interfaces- at GST_MAJORMINOR@ \
 		--pkg-export gstreamer-riff- at GST_MAJORMINOR@ \
+		--add-init-section="gst_init(NULL,NULL);" \
 		--output $@ \
 		$(gir_headers) \
 		$(gir_sources)
diff --git a/gst-libs/gst/rtp/Makefile.am b/gst-libs/gst/rtp/Makefile.am
index 130f2c9..5ed88fa 100644
--- a/gst-libs/gst/rtp/Makefile.am
+++ b/gst-libs/gst/rtp/Makefile.am
@@ -43,6 +43,7 @@ GstRtp- at GST_MAJORMINOR@.gir: $(INTROSPECTION_SCANNER) libgstrtp- at GST_MAJORMINOR@
 		--pkg gstreamer- at GST_MAJORMINOR@ \
 		--pkg gstreamer-base- at GST_MAJORMINOR@ \
 		--pkg-export gstreamer-rtp- at GST_MAJORMINOR@ \
+		--add-init-section="gst_init(NULL,NULL);" \
 		--output $@ \
 		$(gir_headers) \
 		$(gir_sources)
diff --git a/gst-libs/gst/rtsp/Makefile.am b/gst-libs/gst/rtsp/Makefile.am
index 4ed4742..f055e6a 100644
--- a/gst-libs/gst/rtsp/Makefile.am
+++ b/gst-libs/gst/rtsp/Makefile.am
@@ -76,6 +76,7 @@ GstRtsp- at GST_MAJORMINOR@.gir: $(INTROSPECTION_SCANNER) libgstrtsp- at GST_MAJORMINO
 		--pkg gstreamer- at GST_MAJORMINOR@ \
 		--pkg gstreamer-sdp- at GST_MAJORMINOR@ \
 		--pkg-export gstreamer-rtsp- at GST_MAJORMINOR@ \
+		--add-init-section="gst_init(NULL,NULL);" \
 		--output $@ \
 		$(gir_headers) \
 		$(gir_sources)
diff --git a/gst-libs/gst/sdp/Makefile.am b/gst-libs/gst/sdp/Makefile.am
index 6c8dae2..d0cd5e2 100644
--- a/gst-libs/gst/sdp/Makefile.am
+++ b/gst-libs/gst/sdp/Makefile.am
@@ -31,6 +31,7 @@ GstSdp- at GST_MAJORMINOR@.gir: $(INTROSPECTION_SCANNER) libgstsdp- at GST_MAJORMINOR@
 		--libtool="$(top_builddir)/libtool" \
 		--pkg gstreamer- at GST_MAJORMINOR@ \
 		--pkg-export gstreamer-sdp- at GST_MAJORMINOR@ \
+		--add-init-section="gst_init(NULL,NULL);" \
 		--output $@ \
 		$(gir_headers) \
 		$(gir_sources)
diff --git a/gst-libs/gst/tag/Makefile.am b/gst-libs/gst/tag/Makefile.am
index 9dce438..2fbbfca 100644
--- a/gst-libs/gst/tag/Makefile.am
+++ b/gst-libs/gst/tag/Makefile.am
@@ -40,6 +40,7 @@ GstTag- at GST_MAJORMINOR@.gir: $(INTROSPECTION_SCANNER) libgsttag- at GST_MAJORMINOR@
 		--pkg gstreamer- at GST_MAJORMINOR@ \
 		--pkg gstreamer-base- at GST_MAJORMINOR@ \
 		--pkg-export gstreamer-tag- at GST_MAJORMINOR@ \
+		--add-init-section="gst_init(NULL,NULL);" \
 		--output $@ \
 		$(gir_headers) \
 		$(gir_sources)
diff --git a/gst-libs/gst/video/Makefile.am b/gst-libs/gst/video/Makefile.am
index fd91258..4eeb5e0 100644
--- a/gst-libs/gst/video/Makefile.am
+++ b/gst-libs/gst/video/Makefile.am
@@ -54,6 +54,7 @@ GstVideo- at GST_MAJORMINOR@.gir: $(INTROSPECTION_SCANNER) libgstvideo- at GST_MAJORMI
 		--pkg gstreamer- at GST_MAJORMINOR@ \
 		--pkg gstreamer-base- at GST_MAJORMINOR@ \
 		--pkg-export gstreamer-video- at GST_MAJORMINOR@ \
+		--add-init-section="gst_init(NULL,NULL);" \
 		--output $@ \
 		$(gir_headers) \
 		$(gir_sources)



More information about the gstreamer-commits mailing list