gst_private.h: increse padding in struct _GstClockEntryImpl

When compiling for 32bit architectures with 64bit time_t e.g. riscv32,
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 8 bytes (on 32bit).

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/694>
This commit is contained in:
Khem Raj 2020-11-03 22:58:26 -08:00
parent e74040b41e
commit 96ac9abb23

View file

@ -523,7 +523,7 @@ struct _GstClockEntryImpl
GstClockEntry entry;
GWeakRef clock;
GDestroyNotify destroy_entry;
gpointer padding[19]; /* padding for allowing e.g. systemclock
gpointer padding[21]; /* padding for allowing e.g. systemclock
* to add data in lieu of overridable
* virtual functions on the clock */
};