gi: Use INTROSPECTION_INIT for --add-init-section
authorNicolas Dufresne <nicolas.dufresne@collabora.co.uk>
Tue, 16 Jun 2015 22:08:24 +0000 (18:08 -0400)
committerNicolas Dufresne <nicolas.dufresne@collabora.co.uk>
Tue, 16 Jun 2015 22:08:24 +0000 (18:08 -0400)
This new define was added to common. The new init section fixed
compilation warning found in the init line that was spread across
all files.

gst/Makefile.am
libs/gst/base/Makefile.am
libs/gst/check/Makefile.am
libs/gst/controller/Makefile.am
libs/gst/net/Makefile.am
test.py [new file with mode: 0644]

index b0fe9cc..a117d97 100644 (file)
@@ -295,7 +295,7 @@ Gst-@GST_API_VERSION@.gir: $(INTROSPECTION_SCANNER) libgstreamer-@GST_API_VERSIO
                --pkg gobject-2.0 \
                --pkg gmodule-no-export-2.0 \
                --pkg-export gstreamer-@GST_API_VERSION@ \
-               --add-init-section="gst_init(NULL, NULL);" \
+               --add-init-section="$(INTROSPECTION_INIT)" \
                --output $@ \
                $(gir_headers) \
                $(gir_sources)
index 12bf293..92424ab 100644 (file)
@@ -82,7 +82,7 @@ GstBase-@GST_API_VERSION@.gir: $(INTROSPECTION_SCANNER) libgstbase-@GST_API_VERS
                --libtool="${LIBTOOL}" \
                --pkg gstreamer-@GST_API_VERSION@ \
                --pkg-export gstreamer-base-@GST_API_VERSION@ \
-               --add-init-section="gst_init(NULL,NULL);" \
+               --add-init-section="$(INTROSPECTION_INIT)" \
                --output $@ \
                $(gir_headers) \
                $(gir_sources)
index 9ccaaaa..d80e3fd 100644 (file)
@@ -157,7 +157,7 @@ GstCheck-@GST_API_VERSION@.gir: $(INTROSPECTION_SCANNER) libgstcheck-@GST_API_VE
                --libtool="${LIBTOOL}" \
                --pkg gstreamer-@GST_API_VERSION@ \
                --pkg-export gstreamer-check-@GST_API_VERSION@ \
-               --add-init-section="gst_init(NULL,NULL);" \
+               --add-init-section="$(INTROSPECTION_INIT)" \
                --output $@ \
                $(gir_headers) \
                $(gir_sources)
index 922845d..c89aa9c 100644 (file)
@@ -54,7 +54,7 @@ GstController-@GST_API_VERSION@.gir: $(INTROSPECTION_SCANNER) libgstcontroller-@
                --libtool="${LIBTOOL}" \
                --pkg gstreamer-@GST_API_VERSION@ \
                --pkg-export gstreamer-controller-@GST_API_VERSION@ \
-               --add-init-section="gst_init(NULL,NULL);" \
+               --add-init-section="$(INTROSPECTION_INIT)" \
                --output $@ \
                $(gir_headers) \
                $(gir_sources)
index e502a8c..3daf640 100644 (file)
@@ -75,7 +75,7 @@ GstNet-@GST_API_VERSION@.gir: $(INTROSPECTION_SCANNER) libgstnet-@GST_API_VERSIO
                --pkg gstreamer-@GST_API_VERSION@ \
                --pkg gio-2.0 \
                --pkg-export="gstreamer-net-@GST_API_VERSION@" \
-               --add-init-section="gst_init(NULL,NULL);" \
+               --add-init-section="$(INTROSPECTION_INIT)" \
                --output $@ \
                $(gir_headers) \
                $(gir_sources)
diff --git a/test.py b/test.py
new file mode 100644 (file)
index 0000000..863c0cf
--- /dev/null
+++ b/test.py
@@ -0,0 +1,3 @@
+from gi.repository import Gst
+
+buf = Gst.Buffer()