mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 08:46:40 +00:00
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:
parent
aa7c0f2116
commit
a2d015b88a
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue