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 Edward Hervey
parent b8b03f69b0
commit 40c5396c24

View file

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