[farsight2/master] Pass the stream transmitter parameters to fs_session_new_stream()

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


---
 gst-libs/gst/farsight/fs-session.c   |    6 +++++-
 gst-libs/gst/farsight/fs-session.h   |    4 ++++
 gst/fsrtpconference/fs-rtp-session.c |    3 +++
 3 files changed, 12 insertions(+), 1 deletions(-)

diff --git a/gst-libs/gst/farsight/fs-session.c b/gst-libs/gst/farsight/fs-session.c
index 80b382b..b96007e 100644
--- a/gst-libs/gst/farsight/fs-session.c
+++ b/gst-libs/gst/farsight/fs-session.c
@@ -407,6 +407,9 @@ _remove_stream_ptr (FsSession *session, FsStream *stream)
  * @direction: #FsStreamDirection describing the direction of the new stream that will
  * be created for this participant
  * @transmitter: Name of the type of transmitter to use for this session
+ * @n_parameters: Number of parametrs passed to the stream transmitter
+ * @parameters: an array of n_parameters #GParameter struct that will be passed
+ *   to the newly-create #FsStreamTransmitter
  * @error: location of a #GError, or NULL if no error occured
  *
  * This function creates a stream for the given participant into the active session.
@@ -417,6 +420,7 @@ _remove_stream_ptr (FsSession *session, FsStream *stream)
 FsStream *
 fs_session_new_stream (FsSession *session, FsParticipant *participant,
                        FsStreamDirection direction, gchar *transmitter,
+                       guint n_parameters, GParameter *parameters,
                        GError **error)
 {
   FsSessionClass *klass = FS_SESSION_GET_CLASS (session);
@@ -426,7 +430,7 @@ fs_session_new_stream (FsSession *session, FsParticipant *participant,
 
   if (klass->new_stream) {
     new_stream = klass->new_stream (session, participant, direction,
-                                    transmitter, error);
+      transmitter, n_parameters, parameters, error);
 
     if (!new_stream)
       return NULL;
diff --git a/gst-libs/gst/farsight/fs-session.h b/gst-libs/gst/farsight/fs-session.h
index 3f9ecf1..628b6a7 100644
--- a/gst-libs/gst/farsight/fs-session.h
+++ b/gst-libs/gst/farsight/fs-session.h
@@ -120,6 +120,8 @@ struct _FsSessionClass
                             FsParticipant *participant,
                             FsStreamDirection direction,
                             gchar *transmitter,
+                            guint n_parameters,
+                            GParameter *parameters,
                             GError **error);
 
   gboolean (* start_telephony_event) (FsSession *session, guint8 event,
@@ -155,6 +157,8 @@ FsStream *fs_session_new_stream (FsSession *session,
                                  FsParticipant *participant,
                                  FsStreamDirection direction,
                                  gchar *transmitter,
+                                 guint n_parameters,
+                                 GParameter *parameters,
                                  GError **error);
 
 gboolean fs_session_start_telephony_event (FsSession *session, guint8 event,
diff --git a/gst/fsrtpconference/fs-rtp-session.c b/gst/fsrtpconference/fs-rtp-session.c
index f8f3f47..fc8cd8d 100644
--- a/gst/fsrtpconference/fs-rtp-session.c
+++ b/gst/fsrtpconference/fs-rtp-session.c
@@ -119,6 +119,8 @@ static FsStream *fs_rtp_session_new_stream (FsSession *session,
                                             FsParticipant *participant,
                                             FsStreamDirection direction,
                                             gchar *transmitter,
+                                            guint n_parameters,
+                                            GParameter *parameters,
                                             GError **error);
 static gboolean fs_rtp_session_start_telephony_event (FsSession *session,
                                                       guint8 event,
@@ -571,6 +573,7 @@ fs_rtp_session_constructed (GObject *object)
 static FsStream *
 fs_rtp_session_new_stream (FsSession *session, FsParticipant *participant,
                            FsStreamDirection direction, gchar *transmitter,
+                           guint g_parameters, GParameter *parameters,
                            GError **error)
 {
   FsRtpSession *self = FS_RTP_SESSION (session);
-- 
1.5.6.5




More information about the farsight-commits mailing list