change another G_TYPE_POINTER in g_signal_new() to GST_TYPE_PLUGIN, fixing boxed type functions so it doesn't crash

Original commit message from CVS:
change another G_TYPE_POINTER in g_signal_new() to GST_TYPE_PLUGIN,
fixing boxed type functions so it doesn't crash
This commit is contained in:
David Schleef 2003-11-13 04:03:49 +00:00
parent aa7c0f2116
commit a2d015b88a
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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;
}