libs: g-i: fix init section to avoid compiler warnings
authorTim-Philipp Müller <tim@centricular.com>
Tue, 19 Jan 2016 08:39:58 +0000 (08:39 +0000)
committerTim-Philipp Müller <tim@centricular.com>
Tue, 19 Jan 2016 08:40:35 +0000 (08:40 +0000)
..GstPlayer-1.0.c: In function ‘main’:
..GstPlayer-1.0.c:587:3: warning: implicit declaration of function ‘gst_init’

https://bugzilla.gnome.org/show_bug.cgi?id=760090

gst-libs/gst/gl/Makefile.am
gst-libs/gst/insertbin/Makefile.am
gst-libs/gst/mpegts/Makefile.am
gst-libs/gst/player/Makefile.am

index fcf788f..46df5cd 100644 (file)
@@ -168,7 +168,7 @@ GstGL-@GST_API_VERSION@.gir: $(INTROSPECTION_SCANNER) libgstgl-@GST_API_VERSION@
                --pkg gstreamer-base-@GST_API_VERSION@ \
                --pkg gstreamer-video-@GST_API_VERSION@ \
                --pkg-export gstreamer-gl-@GST_API_VERSION@ \
-               --add-init-section="gst_init(NULL,NULL);" \
+               --add-init-section="$(INTROSPECTION_INIT)" \
                -DGST_USE_UNSTABLE_API \
                --output $@ \
                $(gir_headers) \
index d4d331c..8368f41 100644 (file)
@@ -48,7 +48,7 @@ GstInsertBin-@GST_API_VERSION@.gir: $(INTROSPECTION_SCANNER) libgstinsertbin-@GS
                --pkg gstreamer-@GST_API_VERSION@ \
                --pkg gstreamer-base-@GST_API_VERSION@ \
                --pkg-export gstreamer-insertbin-@GST_API_VERSION@ \
-               --add-init-section="gst_init(NULL,NULL);" \
+               --add-init-section="$(INTROSPECTION_INIT)" \
                -DGST_USE_UNSTABLE_API \
                --output $@ \
                $(gir_headers) \
index 2511d49..cd8b8ad 100644 (file)
@@ -82,7 +82,7 @@ GstMpegts-@GST_API_VERSION@.gir: $(INTROSPECTION_SCANNER) libgstmpegts-@GST_API_
                --pkg gstreamer-@GST_API_VERSION@ \
                --pkg gstreamer-video-@GST_API_VERSION@ \
                --pkg-export gstreamer-mpegts-@GST_API_VERSION@ \
-               --add-init-section="gst_init(NULL,NULL);" \
+               --add-init-section="$(INTROSPECTION_INIT)" \
                -DGST_USE_UNSTABLE_API \
                --output $@ \
                $(gir_headers) \
index 60e8ecf..4769fa8 100644 (file)
@@ -76,7 +76,7 @@ GstPlayer-@GST_API_VERSION@.gir: $(INTROSPECTION_SCANNER) libgstplayer-@GST_API_
                --pkg gstreamer-tag-@GST_API_VERSION@ \
                --pkg gstreamer-pbutils-@GST_API_VERSION@ \
                --pkg-export gstreamer-player-@GST_API_VERSION@ \
-               --add-init-section="gst_init(NULL,NULL);" \
+               --add-init-section="$(INTROSPECTION_INIT)" \
                --output $@ \
                $(gir_headers) \
                $(gir_sources)