diff --git a/gst/gstplugin.c b/gst/gstplugin.c index 625f2dabd4..597cf34d11 100644 --- a/gst/gstplugin.c +++ b/gst/gstplugin.c @@ -67,7 +67,7 @@ static GstPlugin * gst_plugin_register_func (GstPlugin *plugin, static GstPlugin * gst_plugin_copy (GstPlugin *plugin) { - return plugin; + return g_memdup(plugin, sizeof(*plugin)); } GType diff --git a/gst/gstregistry.c b/gst/gstregistry.c index df0f856279..3632a11d00 100644 --- a/gst/gstregistry.c +++ b/gst/gstregistry.c @@ -85,7 +85,7 @@ gst_registry_class_init (GstRegistryClass *klass) g_signal_new ("plugin_added", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstRegistryClass, plugin_added), NULL, NULL, gst_marshal_VOID__POINTER, G_TYPE_NONE, 1, - G_TYPE_POINTER); + GST_TYPE_PLUGIN); gobject_class->dispose = NULL; }