diff --git a/gst/Makefile.am b/gst/Makefile.am index e80cc4caa8..8bcb9a109f 100644 --- a/gst/Makefile.am +++ b/gst/Makefile.am @@ -248,6 +248,7 @@ Gst-@GST_MAJORMINOR@.gir: $(INTROSPECTION_SCANNER) libgstreamer-@GST_MAJORMINOR@ --nsversion=@GST_MAJORMINOR@ \ -I$(top_srcdir) \ -I$(top_builddir) \ + -DIN_GOBJECT_INTROSPECTION=1 \ --c-include='gst/gst.h' \ --library=gstreamer-0.10 \ --include=GLib-2.0 \ diff --git a/gst/gsttaglist.h b/gst/gsttaglist.h index 459cf3b802..28a2c1119a 100644 --- a/gst/gsttaglist.h +++ b/gst/gsttaglist.h @@ -150,7 +150,12 @@ typedef enum { * * Opaque #GstTagList data structure. */ +#ifdef IN_GOBJECT_INTROSPECTION +typedef struct _GstTagList GstTagList; +#else typedef GstStructure GstTagList; +#endif + #define GST_TAG_LIST(x) ((GstTagList *) (x)) #define GST_IS_TAG_LIST(x) ((x) != NULL && gst_is_tag_list (GST_TAG_LIST (x))) #define GST_TYPE_TAG_LIST (gst_tag_list_get_type ())