rdt: add on-npt-stop signal
authorWim Taymans <wim.taymans@collabora.co.uk>
Wed, 25 Jul 2012 11:05:17 +0000 (13:05 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Wed, 25 Jul 2012 11:05:17 +0000 (13:05 +0200)
rtspsrc will look for it.

gst/realmedia/rdtmanager.c
gst/realmedia/rdtmanager.h

index 1f42dbdea76a9518b74b9451334160a4750ab503..3ee7bc159a0652b9b5b8e00fd452f50638234578 100644 (file)
@@ -77,6 +77,7 @@ enum
   SIGNAL_ON_BYE_SSRC,
   SIGNAL_ON_BYE_TIMEOUT,
   SIGNAL_ON_TIMEOUT,
+  SIGNAL_ON_NPT_STOP,
   LAST_SIGNAL
 };
 
@@ -480,6 +481,21 @@ gst_rdt_manager_class_init (GstRDTManagerClass * g_class)
       NULL, NULL, gst_rdt_manager_marshal_VOID__UINT_UINT, G_TYPE_NONE, 2,
       G_TYPE_UINT, G_TYPE_UINT);
 
+  /**
+   * GstRDTManager::on-npt-stop:
+   * @rtpbin: the object which received the signal
+   * @session: the session
+   * @ssrc: the SSRC
+   *
+   * Notify that SSRC sender has sent data up to the configured NPT stop time.
+   */
+  gst_rdt_manager_signals[SIGNAL_ON_NPT_STOP] =
+      g_signal_new ("on-npt-stop", G_TYPE_FROM_CLASS (klass),
+      G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstRDTManagerClass, on_npt_stop),
+      NULL, NULL, gst_rdt_manager_marshal_VOID__UINT_UINT, G_TYPE_NONE, 2,
+      G_TYPE_UINT, G_TYPE_UINT);
+
+
   gstelement_class->provide_clock =
       GST_DEBUG_FUNCPTR (gst_rdt_manager_provide_clock);
   gstelement_class->change_state =
index 28168170e3c136d54a65a43a9bf45bae0da490f8..948c298c91b4460b72c559cccad142b181378377 100644 (file)
@@ -81,6 +81,7 @@ struct _GstRDTManagerClass {
   void     (*on_bye_ssrc)       (GstRDTManager *rtpdec, guint session, guint32 ssrc);
   void     (*on_bye_timeout)    (GstRDTManager *rtpdec, guint session, guint32 ssrc);
   void     (*on_timeout)        (GstRDTManager *rtpdec, guint session, guint32 ssrc);
+  void     (*on_npt_stop)       (GstRDTManager *rtpdec, guint session, guint32 ssrc);
 };
 
 GType gst_rdt_manager_get_type(void);