registrychunks: Make sure we use aligned memory

This is in the same vein as for all other features. Some systems
might not allow unaligned read.
This commit is contained in:
Edward Hervey 2017-11-20 17:01:04 +01:00 committed by Sebastian Dröge
parent c28a2c31d4
commit 0280dc1fb9

View file

@ -709,6 +709,7 @@ gst_registry_chunks_load_feature (GstRegistry * registry, gchar ** in,
} else if (GST_IS_DYNAMIC_TYPE_FACTORY (feature)) {
GstRegistryChunkDynamicTypeFactory *tmp;
align (*in);
unpack_element (*in, tmp, GstRegistryChunkDynamicTypeFactory, end, fail);
pf = (GstRegistryChunkPluginFeature *) tmp;