#include <gst/gstelement.h>
#include <gst/gsttypefind.h>
#include <gst/gsttypefindfactory.h>
-#include <gst/gstdevicemonitorfactory.h>
+#include <gst/gstdeviceproviderfactory.h>
+#include <gst/gstdynamictypefactory.h>
#include <gst/gsturi.h>
#include <gst/gstinfo.h>
#include <gst/gstenumtypes.h>
gchar padder[ALIGNMENT] = { 0, };
int padsize = 0;
- /* Padding to insert the struct that requiere word alignment */
+ /* Padding to insert the struct that require word alignment */
if ((chunk->align) && (alignment (*file_position) != 0)) {
padsize = ALIGNMENT - alignment (*file_position);
if (gst_registry_binary_cache_write (cache, *file_position,
{
memset (m, 0, sizeof (GstBinaryRegistryMagic));
- if (!strncpy (m->magic, GST_MAGIC_BINARY_REGISTRY_STR,
+ if (!memcpy (m->magic, GST_MAGIC_BINARY_REGISTRY_STR,
GST_MAGIC_BINARY_REGISTRY_LEN)
|| !strncpy (m->version, GST_MAGIC_BINARY_VERSION_STR,
GST_MAGIC_BINARY_VERSION_LEN)) {
/* make sure these types exist */
GST_TYPE_ELEMENT_FACTORY;
GST_TYPE_TYPE_FIND_FACTORY;
- GST_TYPE_DEVICE_MONITOR_FACTORY;
+ GST_TYPE_DEVICE_PROVIDER_FACTORY;
+ GST_TYPE_DYNAMIC_TYPE_FACTORY;
#ifndef GST_DISABLE_GST_DEBUG
timer = g_timer_new ();