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/695>
This commit is contained in:
Khem Raj 2020-11-03 22:58:26 -08:00 committed by Tim-Philipp Müller
parent b39a06065a
commit 12937488ae

View file

@ -524,7 +524,7 @@ struct _GstClockEntryImpl
GstClockEntry entry; GstClockEntry entry;
GWeakRef clock; GWeakRef clock;
GDestroyNotify destroy_entry; 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 * to add data in lieu of overridable
* virtual functions on the clock */ * virtual functions on the clock */
}; };