[clutter-gst/clutter-gst-2.0] build: Avoid warning when generating introspection data



commit a559637b7c756013d990e1007da619b3442815d1
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Sat Jun 18 16:37:42 2016 +0100

    build: Avoid warning when generating introspection data
    
    We need to declare gst_init() before using it.

 clutter-gst/Makefile.am |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/clutter-gst/Makefile.am b/clutter-gst/Makefile.am
index 63bb37a..b09eb40 100644
--- a/clutter-gst/Makefile.am
+++ b/clutter-gst/Makefile.am
@@ -155,7 +155,7 @@ ClutterGst- CLUTTER_GST_API_VERSION@.gir: $(INTROSPECTION_SCANNER) libclutter-gs
                --include=GstVideo-1.0 \
                --add-include-path=`$(PKG_CONFIG) --variable=girdir gstreamer-audio-1.0` \
                --include=GstAudio-1.0 \
-               --add-init-section="gst_init(0,NULL);" \
+               --add-init-section="extern void gst_init (int *argc, char *argv[]); gst_init(0,NULL);" \
                --library=libclutter-gst- CLUTTER_GST_API_VERSION@.la \
                --libtool="${LIBTOOL}" \
                --output $@ \


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]