[gst-devel] Recent change in gstregistry.c - FIX

Brett Kosinski brettk at frodo.dyn.gno.org
Sun Nov 16 17:23:13 CET 2003


Here's the patch to gstregistry.c which sets the callback parameter type
to GST_TYPE_PLUGIN and uses a different marshaller to fix the crash bug in
gst-register.

This does make me wonder if there are other places where this is a
problem, in light of the recent parameter type changes...

Brett.
-------------- next part --------------
Index: gstregistry.c
===================================================================
RCS file: /cvsroot/gstreamer/gstreamer/gst/gstregistry.c,v
retrieving revision 1.20
diff -u -r1.20 gstregistry.c
--- gstregistry.c	14 Nov 2003 15:54:47 -0000	1.20
+++ gstregistry.c	17 Nov 2003 01:19:14 -0000
@@ -84,8 +84,8 @@
   gst_registry_signals[PLUGIN_ADDED] =
     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);
+                  g_cclosure_marshal_VOID__BOXED, G_TYPE_NONE, 1,
+                  GST_TYPE_PLUGIN);
 
   gobject_class->dispose = NULL;
 }


More information about the gstreamer-devel mailing list