From aa7c0f21164b1ee5eb061e9ad59d03e9f48eca79 Mon Sep 17 00:00:00 2001 From: David Schleef Date: Thu, 13 Nov 2003 03:29:33 +0000 Subject: [PATCH] fixes for last checkin Original commit message from CVS: fixes for last checkin --- gst/gstplugin.c | 9 ++++++++- gst/gstregistry.c | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/gst/gstplugin.c b/gst/gstplugin.c index b8f0759884..625f2dabd4 100644 --- a/gst/gstplugin.c +++ b/gst/gstplugin.c @@ -64,13 +64,20 @@ static GstPlugin * gst_plugin_register_func (GstPlugin *plugin, GModule *module, GstPluginDesc *desc); +static GstPlugin * +gst_plugin_copy (GstPlugin *plugin) +{ + return plugin; +} + GType gst_plugin_get_type (void) { static GType plugin_type; if (plugin_type == 0) { - plugin_type = g_boxed_type_register_static ("GstPlugin", NULL, g_free); + plugin_type = g_boxed_type_register_static ("GstPlugin", + (GBoxedCopyFunc) gst_plugin_copy, g_free); } return plugin_type; diff --git a/gst/gstregistry.c b/gst/gstregistry.c index 3632a11d00..df0f856279 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, - GST_TYPE_PLUGIN); + G_TYPE_POINTER); gobject_class->dispose = NULL; }