gst_private.h: increse padding in struct _GstClockEntryImpl
authorHavard Graff <havard.graff@gmail.com>
Mon, 8 Jun 2020 20:47:56 +0000 (22:47 +0200)
committerHavard Graff <havard.graff@gmail.com>
Mon, 8 Jun 2020 20:48:55 +0000 (22:48 +0200)
When compiling for 32bit ios arm, the static assert that the
GstClockEntryImpl smaller or equal to the struct _GstClockEntryImpl
triggered. (they were 12bytes off).

To fix this, the padding is increased by 12 bytes (on 32bit).

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/525>

gst/gst_private.h

index 8eb28cf..1b0f02b 100644 (file)
@@ -524,7 +524,7 @@ struct _GstClockEntryImpl
   GstClockEntry entry;
   GWeakRef clock;
   GDestroyNotify destroy_entry;
-  gpointer padding[16];                 /* padding for allowing e.g. systemclock
+  gpointer padding[19];                 /* padding for allowing e.g. systemclock
                                          * to add data in lieu of overridable
                                          * virtual functions on the clock */
 };