[gst-devel] GstCaps structure doesn't have padding

David Schleef ds at schleef.org
Tue Mar 9 11:44:03 CET 2004


While I was playing with some ideas to do fixating correctly
in 0.9, I realized that GstCaps and GstStructure do not have
padding.  Oops.

I'd like to apply this patch (which is obviously an ABI change)
as part of the transition to 0.8.



dave...


Index: gstcaps.h
===================================================================
RCS file: /home/cvs/gstreamer/gstreamer/gst/gstcaps.h,v
retrieving revision 1.68
diff -u -r1.68 gstcaps.h
--- a/gstcaps.h	7 Feb 2004 15:37:21 -0000	1.68
+++ b/gstcaps.h	9 Mar 2004 01:37:35 -0000
@@ -37,6 +37,8 @@
 
   guint16 flags;
   GPtrArray *structs;
+
+  gpointer _gst_reserved[GST_PADDING];
 };
 
 struct _GstStaticCaps {
Index: gststructure.h
===================================================================
RCS file: /home/cvs/gstreamer/gstreamer/gst/gststructure.h,v
retrieving revision 1.9
diff -u -r1.9 gststructure.h
--- a/gststructure.h	18 Feb 2004 05:26:59 -0000	1.9
+++ b/gststructure.h	9 Mar 2004 01:37:35 -0000
@@ -36,6 +36,8 @@
   GQuark name;
 
   GArray *fields;
+
+  gpointer _gst_reserved[GST_PADDING];
 };
 
 #define GST_TYPE_STRUCTURE (gst_structure_get_type())




More information about the gstreamer-devel mailing list