libs: make sure gobject-introspection scanner calls gst_init()
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Wed, 9 Mar 2011 11:51:14 +0000 (11:51 +0000)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Wed, 30 Mar 2011 20:08:29 +0000 (21:08 +0100)
Cherry-picked from 0.11, since it's the right thing to do (we
now silently rely on various _get_type() working without
gst_init() having been called).

12 files changed:
gst-libs/gst/app/Makefile.am
gst-libs/gst/audio/Makefile.am
gst-libs/gst/cdda/Makefile.am
gst-libs/gst/fft/Makefile.am
gst-libs/gst/interfaces/Makefile.am
gst-libs/gst/netbuffer/Makefile.am
gst-libs/gst/riff/Makefile.am
gst-libs/gst/rtp/Makefile.am
gst-libs/gst/rtsp/Makefile.am
gst-libs/gst/sdp/Makefile.am
gst-libs/gst/tag/Makefile.am
gst-libs/gst/video/Makefile.am

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