From 632431aecbbc75c91526db26d312e3cbfab015d4 Mon Sep 17 00:00:00 2001 From: Nicolas Dufresne Date: Tue, 16 Jun 2015 18:08:24 -0400 Subject: [PATCH] gi: Use INTROSPECTION_INIT for --add-init-section 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 | 2 +- libs/gst/base/Makefile.am | 2 +- libs/gst/check/Makefile.am | 2 +- libs/gst/controller/Makefile.am | 2 +- libs/gst/net/Makefile.am | 2 +- test.py | 3 +++ 6 files changed, 8 insertions(+), 5 deletions(-) create mode 100644 test.py diff --git a/gst/Makefile.am b/gst/Makefile.am index b0fe9ccf08..a117d9771d 100644 --- a/gst/Makefile.am +++ b/gst/Makefile.am @@ -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) diff --git a/libs/gst/base/Makefile.am b/libs/gst/base/Makefile.am index 12bf293a8e..92424abdb8 100644 --- a/libs/gst/base/Makefile.am +++ b/libs/gst/base/Makefile.am @@ -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) diff --git a/libs/gst/check/Makefile.am b/libs/gst/check/Makefile.am index 9ccaaaaacb..d80e3fd599 100644 --- a/libs/gst/check/Makefile.am +++ b/libs/gst/check/Makefile.am @@ -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) diff --git a/libs/gst/controller/Makefile.am b/libs/gst/controller/Makefile.am index 922845d8ae..c89aa9ce40 100644 --- a/libs/gst/controller/Makefile.am +++ b/libs/gst/controller/Makefile.am @@ -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) diff --git a/libs/gst/net/Makefile.am b/libs/gst/net/Makefile.am index e502a8ca9d..3daf640d87 100644 --- a/libs/gst/net/Makefile.am +++ b/libs/gst/net/Makefile.am @@ -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 index 0000000000..863c0cfe3e --- /dev/null +++ b/test.py @@ -0,0 +1,3 @@ +from gi.repository import Gst + +buf = Gst.Buffer()