[farsight2/master] rtp: Implement get_stream_transmitter_type

Olivier Crête olivier.crete at collabora.co.uk
Tue Jul 14 09:50:54 PDT 2009


---
 gst/fsrtpconference/fs-rtp-session.c |   23 +++++++++++++++++++++++
 1 files changed, 23 insertions(+), 0 deletions(-)

diff --git a/gst/fsrtpconference/fs-rtp-session.c b/gst/fsrtpconference/fs-rtp-session.c
index f87c229..a3bbbf0 100644
--- a/gst/fsrtpconference/fs-rtp-session.c
+++ b/gst/fsrtpconference/fs-rtp-session.c
@@ -241,6 +241,8 @@ static gboolean fs_rtp_session_set_codec_preferences (FsSession *session,
 static void fs_rtp_session_verify_send_codec_bin (FsRtpSession *self);
 
 static gchar **fs_rtp_session_list_transmitters (FsSession *session);
+static GType fs_rtp_session_get_stream_transmitter_type (FsSession *session,
+    const gchar *transmitter);
 
 static void _substream_no_rtcp_timedout_cb (FsRtpSubStream *substream,
     FsRtpSession *session);
@@ -324,6 +326,8 @@ fs_rtp_session_class_init (FsRtpSessionClass *klass)
   session_class->set_codec_preferences =
     fs_rtp_session_set_codec_preferences;
   session_class->list_transmitters = fs_rtp_session_list_transmitters;
+  session_class->get_stream_transmitter_type =
+    fs_rtp_session_get_stream_transmitter_type;
 
   g_object_class_override_property (gobject_class,
     PROP_MEDIA_TYPE, "media-type");
@@ -4512,3 +4516,22 @@ fs_rtp_session_list_transmitters (FsSession *session)
 
   return rv;
 }
+
+
+static GType
+fs_rtp_session_get_stream_transmitter_type (FsSession *session,
+    const gchar *transmitter)
+{
+  FsRtpSession *self = FS_RTP_SESSION (session);
+  GType st_type = 0;
+  FsTransmitter *trans;
+
+  trans = fs_rtp_session_get_transmitter (self, transmitter, NULL);
+
+  if (transmitter)
+    st_type = fs_transmitter_get_stream_transmitter_type (trans);
+
+  g_object_unref (trans);
+
+  return st_type;
+}
-- 
1.5.6.5




More information about the farsight-commits mailing list