[farsight2/master] Add signal to FsStreamTransmitter emitted when a buffer from a known source is received

Olivier Crête olivier.crete at collabora.co.uk
Tue Dec 23 15:23:43 PST 2008


---
 gst-libs/gst/farsight/fs-marshal.list         |    1 +
 gst-libs/gst/farsight/fs-stream-transmitter.c |   21 ++++++++++++++++++++-
 2 files changed, 21 insertions(+), 1 deletions(-)

diff --git a/gst-libs/gst/farsight/fs-marshal.list b/gst-libs/gst/farsight/fs-marshal.list
index f2628a5..1666f05 100644
--- a/gst-libs/gst/farsight/fs-marshal.list
+++ b/gst-libs/gst/farsight/fs-marshal.list
@@ -2,3 +2,4 @@ VOID:OBJECT,ENUM,STRING,STRING
 VOID:ENUM,STRING,STRING
 VOID:BOXED,BOXED
 VOID:OBJECT,OBJECT
+VOID:UINT,POINTER
diff --git a/gst-libs/gst/farsight/fs-stream-transmitter.c b/gst-libs/gst/farsight/fs-stream-transmitter.c
index 2486c24..ade5b52 100644
--- a/gst-libs/gst/farsight/fs-stream-transmitter.c
+++ b/gst-libs/gst/farsight/fs-stream-transmitter.c
@@ -55,6 +55,7 @@ enum
   NEW_LOCAL_CANDIDATE,
   NEW_ACTIVE_CANDIDATE_PAIR,
   LOCAL_CANDIDATES_PREPARED,
+  KNOWN_SOURCE_PACKET_RECEIVED,
   LAST_SIGNAL
 };
 
@@ -215,7 +216,25 @@ fs_stream_transmitter_class_init (FsStreamTransmitterClass *klass)
       g_cclosure_marshal_VOID__VOID,
       G_TYPE_NONE, 0);
 
-
+ /**
+   * FsStreamTransmitter::known-source-packet-received:
+   * @self: #FsStreamTransmitter that emitted the signal
+   * @component: The Component on which this buffer was received
+   * @buffer: the #GstBuffer coming from the known source
+   *
+   * This signal is emitted when a buffer coming from a confirmed known source
+   * is received.
+   *
+   */
+  signals[KNOWN_SOURCE_PACKET_RECEIVED] = g_signal_new
+    ("known-source-packet-received",
+      G_TYPE_FROM_CLASS (klass),
+      G_SIGNAL_RUN_LAST,
+      0,
+      NULL,
+      NULL,
+      _fs_marshal_VOID__UINT_POINTER,
+      G_TYPE_NONE, 2, G_TYPE_UINT, GST_TYPE_BUFFER);
 
   gobject_class->dispose = fs_stream_transmitter_dispose;
   gobject_class->finalize = fs_stream_transmitter_finalize;
-- 
1.5.6.5




More information about the farsight-commits mailing list