[0.11] gst-plugins-base: discoverer: mark GError argument of "discovered" signal with STATIC_SCOPE

Tim Müller tpm at kemper.freedesktop.org
Wed Feb 1 11:35:05 PST 2012


Module: gst-plugins-base
Branch: 0.11
Commit: 24749aa2dbb563a254b861aa66ea19ff28665d18
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-base/commit/?id=24749aa2dbb563a254b861aa66ea19ff28665d18

Author: Tim-Philipp Müller <tim.muller at collabora.co.uk>
Date:   Wed Feb  1 19:26:29 2012 +0000

discoverer: mark GError argument of "discovered" signal with STATIC_SCOPE

So the error is passed to the callback as is without a copy being made.

---

 gst-libs/gst/pbutils/gstdiscoverer.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/gst-libs/gst/pbutils/gstdiscoverer.c b/gst-libs/gst/pbutils/gstdiscoverer.c
index 23fce6f..e3ca0d6 100644
--- a/gst-libs/gst/pbutils/gstdiscoverer.c
+++ b/gst-libs/gst/pbutils/gstdiscoverer.c
@@ -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



More information about the gstreamer-commits mailing list