[gst-devel] alignment issues

Daniel Gazard daniel.gazard at free.fr
Sun Apr 4 23:16:03 CEST 2004

Benjamin Otte <in7y118 at public.uni-hamburg.de> writes:


> I'd say put them in the GStreamer core into gst/gstutils.h.
> I'm not sure if we should #ifdef them to use G_UNIT_FROM_BE by default
> and these macros only in those special cases.
> But that's probably premature optimization.

I think we rather should use a conservative approach by using by
default these macro especially since unalignment issues can cause
pretty subtle bugs. G_UINT_FROM_ should be used only for the
identified architecture (x86 and ?) that do not fall under these
alignment requirement.

More information about the gstreamer-devel mailing list