[gst-cvs] gnonlin: GnlOperation: Fix signal signature, add public method to emit signal

Edward Hervey bilboed at kemper.freedesktop.org
Sun Aug 23 10:57:11 PDT 2009


Module: gnonlin
Branch: master
Commit: 7bcd1e1bce194506f956dec415a06aae81f2e89e
URL:    http://cgit.freedesktop.org/gstreamer/gnonlin/commit/?id=7bcd1e1bce194506f956dec415a06aae81f2e89e

Author: Edward Hervey <bilboed at bilboed.com>
Date:   Sun Aug 23 19:50:01 2009 +0200

GnlOperation: Fix signal signature, add public method to emit signal

---

 gnl/gnloperation.c |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diff --git a/gnl/gnloperation.c b/gnl/gnloperation.c
index ded369a..1ddb0c7 100644
--- a/gnl/gnloperation.c
+++ b/gnl/gnloperation.c
@@ -144,7 +144,7 @@ gnl_operation_class_init (GnlOperationClass * klass)
       g_signal_new ("input-priority-changed", G_TYPE_FROM_CLASS (klass),
       G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GnlOperationClass,
           input_priority_changed), NULL, NULL, gnl_marshal_VOID__OBJECT_UINT,
-      G_TYPE_NONE, 1, G_TYPE_UINT);
+      G_TYPE_NONE, 2, GST_TYPE_PAD, G_TYPE_UINT);
 
   gstelement_class->request_new_pad =
       GST_DEBUG_FUNCPTR (gnl_operation_request_new_pad);
@@ -738,3 +738,13 @@ gnl_operation_release_pad (GstElement * element, GstPad * pad)
 
   remove_sink_pad ((GnlOperation *) element, pad);
 }
+
+void
+gnl_operation_signal_input_priority_changed (GnlOperation * operation,
+    GstPad * pad, guint32 priority)
+{
+  GST_DEBUG_OBJECT (operation, "pad:%s:%s, priority:%d",
+      GST_DEBUG_PAD_NAME (pad), priority);
+  g_signal_emit (operation, gnl_operation_signals[INPUT_PRIORITY_CHANGED],
+      0, pad, priority);
+}





More information about the Gstreamer-commits mailing list