discoverer: mark GError argument of "discovered" signal with STATIC_SCOPE
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Wed, 1 Feb 2012 19:26:29 +0000 (19:26 +0000)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Wed, 1 Feb 2012 19:34:22 +0000 (19:34 +0000)
So the error is passed to the callback as is without a copy being made.

gst-libs/gst/pbutils/gstdiscoverer.c

index 23fce6f..e3ca0d6 100644 (file)
@@ -235,7 +235,8 @@ gst_discoverer_class_init (GstDiscovererClass * klass)
       g_signal_new ("discovered", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST,
       G_STRUCT_OFFSET (GstDiscovererClass, discovered),
       NULL, NULL, pbutils_marshal_VOID__POINTER_BOXED,
-      G_TYPE_NONE, 2, GST_TYPE_DISCOVERER_INFO, G_TYPE_ERROR);
+      G_TYPE_NONE, 2, GST_TYPE_DISCOVERER_INFO,
+      G_TYPE_ERROR | G_SIGNAL_TYPE_STATIC_SCOPE);
 }
 
 static void