From 45b6bda76caa2bd8b98cbbfd80dc4ee906d75049 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Wed, 9 Mar 2011 11:51:14 +0000 Subject: [PATCH] libs: make sure gobject-introspection scanner calls gst_init() 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). --- 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(+) diff --git a/gst-libs/gst/app/Makefile.am b/gst-libs/gst/app/Makefile.am index f4ffac0ccc..bcbc1314f4 100644 --- a/gst-libs/gst/app/Makefile.am +++ b/gst-libs/gst/app/Makefile.am @@ -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) diff --git a/gst-libs/gst/audio/Makefile.am b/gst-libs/gst/audio/Makefile.am index 0a282171f3..51c860734a 100644 --- a/gst-libs/gst/audio/Makefile.am +++ b/gst-libs/gst/audio/Makefile.am @@ -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) diff --git a/gst-libs/gst/cdda/Makefile.am b/gst-libs/gst/cdda/Makefile.am index 09f334aae5..264f942099 100644 --- a/gst-libs/gst/cdda/Makefile.am +++ b/gst-libs/gst/cdda/Makefile.am @@ -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) diff --git a/gst-libs/gst/fft/Makefile.am b/gst-libs/gst/fft/Makefile.am index 7e84eaec17..348fe45e6e 100644 --- a/gst-libs/gst/fft/Makefile.am +++ b/gst-libs/gst/fft/Makefile.am @@ -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) diff --git a/gst-libs/gst/interfaces/Makefile.am b/gst-libs/gst/interfaces/Makefile.am index f462211fa2..eda0d91c4a 100644 --- a/gst-libs/gst/interfaces/Makefile.am +++ b/gst-libs/gst/interfaces/Makefile.am @@ -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) diff --git a/gst-libs/gst/netbuffer/Makefile.am b/gst-libs/gst/netbuffer/Makefile.am index fced57c33c..a6bba8cc90 100644 --- a/gst-libs/gst/netbuffer/Makefile.am +++ b/gst-libs/gst/netbuffer/Makefile.am @@ -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) diff --git a/gst-libs/gst/riff/Makefile.am b/gst-libs/gst/riff/Makefile.am index 0bde2b0fb3..07e72042c6 100644 --- a/gst-libs/gst/riff/Makefile.am +++ b/gst-libs/gst/riff/Makefile.am @@ -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) diff --git a/gst-libs/gst/rtp/Makefile.am b/gst-libs/gst/rtp/Makefile.am index 130f2c91f9..5ed88faebe 100644 --- a/gst-libs/gst/rtp/Makefile.am +++ b/gst-libs/gst/rtp/Makefile.am @@ -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) diff --git a/gst-libs/gst/rtsp/Makefile.am b/gst-libs/gst/rtsp/Makefile.am index 4ed474273d..f055e6ae36 100644 --- a/gst-libs/gst/rtsp/Makefile.am +++ b/gst-libs/gst/rtsp/Makefile.am @@ -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) diff --git a/gst-libs/gst/sdp/Makefile.am b/gst-libs/gst/sdp/Makefile.am index 6c8dae21d9..d0cd5e2bfb 100644 --- a/gst-libs/gst/sdp/Makefile.am +++ b/gst-libs/gst/sdp/Makefile.am @@ -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) diff --git a/gst-libs/gst/tag/Makefile.am b/gst-libs/gst/tag/Makefile.am index 4ac8a6e3ad..17b2dff65e 100644 --- a/gst-libs/gst/tag/Makefile.am +++ b/gst-libs/gst/tag/Makefile.am @@ -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) diff --git a/gst-libs/gst/video/Makefile.am b/gst-libs/gst/video/Makefile.am index fd91258f0e..4eeb5e02cb 100644 --- a/gst-libs/gst/video/Makefile.am +++ b/gst-libs/gst/video/Makefile.am @@ -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)