registrychunks: Make sure we use aligned memory
authorEdward Hervey <edward@centricular.com>
Mon, 20 Nov 2017 16:01:04 +0000 (17:01 +0100)
committerEdward Hervey <bilboed@bilboed.com>
Mon, 20 Nov 2017 16:01:04 +0000 (17:01 +0100)
This is in the same vein as for all other features. Some systems
might not allow unaligned read.

gst/gstregistrychunks.c

index a706859..bc86ed6 100644 (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;